mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-11-09 16:41:21 +08:00
AP_Bootloader: added app descriptor checking for CAN fw
This commit is contained in:
1 parent
0a4576728e
commit
92bd1a485a
4 files changed
+61
-2
No files matched your search
@@ -83,6 +83,15 @@ int main(void)
|
||||
timeout = 10000;
|
||||
can_set_node_id(m & 0xFF);
|
||||
}
|
||||
if (!can_check_firmware()) {
|
||||
// bad firmware CRC, don't try and boot
|
||||
timeout = 0;
|
||||
try_boot = false;
|
||||
} else if (timeout != 0) {
|
||||
// fast boot for good firmware
|
||||
try_boot = true;
|
||||
timeout = 1000;
|
||||
}
|
||||
#endif
|
||||
|
||||
// if we fail to boot properly we want to pause in bootloader to give
|
||||
|
||||
Reference in new issue
Block a user