mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-11-09 16:41:21 +08:00
Tools:AP_Bootloader: fix check good firmware define
This commit is contained in:
1 parent
b36b6cda33
commit
2e79c28ffd
2 files changed
+12
No files matched your search
@@ -463,7 +463,11 @@ void BL_Network::handle_post(SocketAPM *sock, uint32_t content_length)
|
||||
}
|
||||
flash_write_flush();
|
||||
flash_set_keep_unlocked(false);
|
||||
#if AP_CHECK_FIRMWARE_ENABLED
|
||||
const auto ok = check_good_firmware();
|
||||
#else
|
||||
const auto ok = check_fw_result_t::CHECK_FW_OK;
|
||||
#endif
|
||||
if (ok == check_fw_result_t::CHECK_FW_OK) {
|
||||
need_launch = true;
|
||||
status_printf("Flash done: OK");
|
||||
|
||||
Reference in new issue
Block a user