HAL_ChibiOS: added commented out test code for watchdog

This commit is contained in:
Andrew Tridgell 2019-04-11 20:01:05 +10:00
parent 3cb134b67c
commit fed89a0b16
1 changed files with 10 additions and 0 deletions

View File

@ -212,6 +212,16 @@ static THD_FUNCTION(main_loop,arg)
if (using_watchdog) {
stm32_watchdog_pat();
}
#if 0
// simple method to test watchdog functionality
static bool done_pause;
if (!done_pause && AP_HAL::millis() > 20000) {
done_pause = true;
while (AP_HAL::millis() < 22000) ;
}
#endif
}
thread_running = false;
}