Import/Timer sleep

This commit is contained in:
2024-05-29 12:47:14 +02:00
parent 6d0c47c6c0
commit 45f9878047
6 changed files with 75 additions and 35 deletions

View File

@ -24,7 +24,7 @@ public class Timer {
}
public static void incrementFromPin (int register){
if (DataRegister.getDirectBit(OPTION, T0CS) == 1){
if ((DataRegister.getDirectBit(OPTION, T0CS) == 1) && !Controller_Frontend.isSleeping()){
int newpin = (register >> 4) & 1;
if (newpin != oldpin) {
System.out.println(newpin + " " + oldpin);