Skip to content

Commit

Permalink
Restore watchdog
Browse files Browse the repository at this point in the history
  • Loading branch information
facchinm committed Jan 30, 2024
1 parent e6b6b03 commit c357f4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/Src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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;
Expand Down

0 comments on commit c357f4e

Please sign in to comment.