Skip to content

Commit

Permalink
Use WDG_RESET instead of watchdogSuspend.
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Mitchell authored and pfeerick committed Jul 30, 2023
1 parent 832d778 commit b4c3a14
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions radio/src/tasks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#include "tasks.h"
#include "tasks/mixer_task.h"

#include "watchdog_driver.h"

RTOS_TASK_HANDLE menusTaskId;
RTOS_DEFINE_STACK(menusTaskId, menusStack, MENUS_STACK_SIZE);

Expand Down Expand Up @@ -73,8 +75,8 @@ TASK_FUNCTION(menusTask)
#endif

splashStartTime += SPLASH_TIMEOUT;
watchdogSuspend(SPLASH_TIMEOUT);
while (splashStartTime > get_tmr10ms()) {
WDG_RESET();
checkSpeakerVolume();
checkBacklight();
RTOS_WAIT_TICKS(10);
Expand All @@ -92,7 +94,6 @@ TASK_FUNCTION(menusTask)
}
#endif
}
watchdogSuspend(0);

// Reset timer so special/global functions set to !1x don't get triggered
START_SILENCE_PERIOD();
Expand Down

0 comments on commit b4c3a14

Please sign in to comment.