GCS_MAVLINK: report on unsigned bootloader flash attempt

This commit is contained in:
Andrew Tridgell 2022-09-03 08:45:54 +10:00
parent b74c9b5862
commit b79f3caf86

View File

@ -4036,6 +4036,11 @@ MAV_RESULT GCS_MAVLINK::handle_command_flash_bootloader(const mavlink_command_lo
case AP_HAL::Util::FlashBootloader::NO_CHANGE:
// consider NO_CHANGE as success (so as not to display error to user)
return MAV_RESULT_ACCEPTED;
#if AP_SIGNED_FIRMWARE
case AP_HAL::Util::FlashBootloader::NOT_SIGNED:
gcs().send_text(MAV_SEVERITY_ERROR, "Bootloader not signed");
break;
#endif
default:
break;
}