Fixed reset Program on WatchDog Timeout

This commit is contained in:
Darkress authored and Gitea committed 2023-06-17 23:25:54 +02:00
1 parent 9d7d1ce5b1
commit 9319a14d88
2 files changed
+3 -2

No files matched your search

@@ -29,7 +29,8 @@ public class Watchdog
public static void resetProgram()
{
Memory.setRegister(0x03, Memory.getRegister(0x03) | 0x10);
Memory.setRegister(0x03, Memory.getRegister(0x03) | 0x10); //Set !T0 in StatusReg
ProgramCounter.resetProgramCounter();
watchdogTimer = 18000;
}