diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index 7342c32e71..3a033ab4d2 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -3436,11 +3436,16 @@ MAV_RESULT GCS_MAVLINK::handle_command_flash_bootloader(const mavlink_command_lo return MAV_RESULT_FAILED; } - if (hal.util->flash_bootloader() != AP_HAL::Util::FlashBootloader::OK) { - return MAV_RESULT_FAILED; + switch (hal.util->flash_bootloader()) { + case AP_HAL::Util::FlashBootloader::OK: + case AP_HAL::Util::FlashBootloader::NO_CHANGE: + // consider NO_CHANGE as success (so as not to display error to user) + return MAV_RESULT_ACCEPTED; + default: + break; } - return MAV_RESULT_ACCEPTED; + return MAV_RESULT_FAILED; } MAV_RESULT GCS_MAVLINK::handle_command_preflight_set_sensor_offsets(const mavlink_command_long_t &packet)