diff --git a/src/system/watchdog.c b/src/system/watchdog.c --- a/src/system/watchdog.c +++ b/src/system/watchdog.c @@ -17,15 +17,15 @@ uint8_t watchdog_enabled = 0; void watchdog_init(void) { #ifdef WATCHDOG_ENABLE - // ~2 seconds? + // ~2 seconds? hiwdg.Instance = IWDG; hiwdg.Init.Prescaler = IWDG_PRESCALER_4; hiwdg.Init.Window = 4095; hiwdg.Init.Reload = 4095; HAL_IWDG_Init(&hiwdg); - watchdog_feed(); - HAL_IWDG_Start(&hiwdg); - watchdog_enabled = 1; + watchdog_feed(); + HAL_IWDG_Start(&hiwdg); + watchdog_enabled = 1; #endif } @@ -34,7 +34,7 @@ void watchdog_init(void) void watchdog_feed(void) { #ifdef WATCHDOG_ENABLE - if(watchdog_enabled) - HAL_IWDG_Refresh(&hiwdg); + if(watchdog_enabled) + HAL_IWDG_Refresh(&hiwdg); #endif }