GCS_MAVLink: support formatting of SD card
This commit is contained in:
parent
146f394d64
commit
f8e4d7facd
@ -4654,6 +4654,14 @@ MAV_RESULT GCS_MAVLINK::handle_command_int_packet(const mavlink_command_int_t &p
|
||||
return handle_command_do_set_roi_sysid(packet);
|
||||
case MAV_CMD_DO_SET_HOME:
|
||||
return handle_command_int_do_set_home(packet);
|
||||
case MAV_CMD_STORAGE_FORMAT: {
|
||||
if (!is_equal(packet.param1, 1.0f) ||
|
||||
!is_equal(packet.param2, 1.0f)) {
|
||||
return MAV_RESULT_UNSUPPORTED;
|
||||
}
|
||||
return AP::FS().format() ? MAV_RESULT_ACCEPTED : MAV_RESULT_FAILED;
|
||||
}
|
||||
|
||||
#if AP_SCRIPTING_ENABLED
|
||||
case MAV_CMD_SCRIPTING:
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user