AP_Bootloader: support firmware update from px4 firmware

allows droncan_gui_tool to update px4 firmware with ArduPilot
bootloader
This commit is contained in:
Andrew Tridgell
2022-02-17 14:37:41 +11:00
parent f2308e96a9
commit 432c2d1758
3 changed files with 52 additions and 5 deletions
+5 -1
View File
@@ -94,7 +94,11 @@ int main(void)
timeout = 10000;
can_set_node_id(m & 0xFF);
}
can_check_update();
if (can_check_update()) {
// trying to update firmware, stay in bootloader
try_boot = false;
timeout = 0;
}
if (!can_check_firmware()) {
// bad firmware CRC, don't try and boot
timeout = 0;