AP_HAL_ChibiOS: disable watchdog when DISABLE_WATCHDOG is defined

This commit is contained in:
bugobliterator 2021-10-28 12:13:26 +05:30 committed by Peter Barker
parent 323c0b2ab4
commit 418ac60373
1 changed files with 2 additions and 0 deletions

View File

@ -237,6 +237,7 @@ static void main_loop()
utilInstance.apply_persistent_params();
#endif
#if !defined(DISABLE_WATCHDOG)
#ifdef IOMCU_FW
stm32_watchdog_init();
#elif !defined(HAL_BOOTLOADER_BUILD)
@ -249,6 +250,7 @@ static void main_loop()
INTERNAL_ERROR(AP_InternalError::error_t::watchdog_reset);
}
#endif // IOMCU_FW
#endif // DISABLE_WATCHDOG
schedulerInstance.watchdog_pat();