HAL_ChibiOS: fixed reboot hold in bootloader

thanks to Tom for noticing this
This commit is contained in:
Andrew Tridgell 2019-08-13 11:45:51 +10:00 committed by Tom Pittenger
parent e18174e4ac
commit 5e40921b42

View File

@ -261,7 +261,7 @@ void Scheduler::reboot(bool hold_in_bootloader)
sdcard_stop();
#endif
#if defined(HAL_USE_RTC) && HAL_USE_RTC
#if !defined(NO_FASTBOOT)
// setup RTC for fast reboot
set_fast_reboot(hold_in_bootloader?RTC_BOOT_HOLD:RTC_BOOT_FAST);
#endif