Working WatchdogTimer

This commit is contained in:
Darkress
2023-06-17 20:42:59 +02:00
parent 2b1f8871d2
commit ab07a0d708
3 changed files with 25 additions and 9 deletions

View File

@@ -56,10 +56,10 @@ public class Timer
cyclesToTimerIncrease--;
if(cyclesToTimerIncrease == 0) {
resetTimeToTimerIncrease();
Watchdog.increaseWatchdogTimer();
Watchdog.decreaseWatchdogTimer();
}
} else {
Watchdog.increaseWatchdogTimer();
Watchdog.decreaseWatchdogTimer();
}
if(timerEnabled()) {
if(!getPrescalerAssignment()) { // Assigned to timer0