mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_ChibiOS: disable watchdog when DISABLE_WATCHDOG is defined
This commit is contained in:
parent
323c0b2ab4
commit
418ac60373
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue