From c357f4e00643085ca212b014c39543f42d965aa1 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Tue, 30 Jan 2024 11:19:29 +0100 Subject: [PATCH] Restore watchdog --- Core/Src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/Src/main.c b/Core/Src/main.c index 687ab77..a354eaa 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -63,7 +63,7 @@ int main(void) MX_GPIO_Init(); ADDRESS = readPinstraps(); MX_I2C1_Init(ADDRESS); - //MX_IWDG_Init(); + MX_IWDG_Init(); /* Initialize interrupts */ MX_NVIC_Init(); @@ -76,7 +76,7 @@ int main(void) /* Infinite loop */ while (1) { - //HAL_IWDG_Refresh(&hiwdg); + HAL_IWDG_Refresh(&hiwdg); if (endTone != 0 && HAL_GetTick() > endTone) { HAL_TIM_PWM_Stop(&htim1, TIM_CHANNEL_1); endTone = 0;