AP_Bootloader: respect HAL_BOOTLOADER_TIMEOUT when CAN and SERIAL/USB is enabled
This commit is contained in:
parent
5238f85091
commit
84e578b3df
@ -90,11 +90,14 @@ int main(void)
|
||||
// bad firmware CRC, don't try and boot
|
||||
timeout = 0;
|
||||
try_boot = false;
|
||||
} else if (timeout != 0) {
|
||||
}
|
||||
#ifndef BOOTLOADER_DEV_LIST
|
||||
else if (timeout != 0) {
|
||||
// fast boot for good firmware
|
||||
try_boot = true;
|
||||
timeout = 1000;
|
||||
}
|
||||
#endif
|
||||
if (was_watchdog && m != RTC_BOOT_FWOK) {
|
||||
// we've had a watchdog within 30s of booting main CAN
|
||||
// firmware. We will stay in bootloader to allow the user to
|
||||
|
Loading…
Reference in New Issue
Block a user