mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
AP_Bootloader: support firmware update from px4 firmware
allows droncan_gui_tool to update px4 firmware with ArduPilot bootloader
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user