restart on watchdog

This commit is contained in:
2020-12-26 22:09:27 +01:00
parent dcedd1badf
commit d6cd63083d
3 changed files with 26 additions and 1 deletions

View File

@ -37,6 +37,8 @@ void watchdogHandler(void *handle) {
} else {
coloredMsg(LOG_RED, true, "No watchdog received in between, booting the system ...");
// boot the system
HAL_NVIC_SystemReset();
}
}