Fixed reset Program on WatchDog Timeout
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user