GCS_MAVLink: use new flash_bootloader() API

This commit is contained in:
Andrew Tridgell 2019-10-25 13:53:30 +11:00
parent dba6d71fc6
commit 4593697634
1 changed files with 1 additions and 1 deletions

View File

@ -3274,7 +3274,7 @@ MAV_RESULT GCS_MAVLINK::handle_command_flash_bootloader(const mavlink_command_lo
return MAV_RESULT_FAILED; return MAV_RESULT_FAILED;
} }
if (!hal.util->flash_bootloader()) { if (hal.util->flash_bootloader() != AP_HAL::Util::FlashBootloader::OK) {
return MAV_RESULT_FAILED; return MAV_RESULT_FAILED;
} }