Skip to content
This repository was archived by the owner on Dec 30, 2024. It is now read-only.

Commit 71f9cfa

Browse files
committed
Update alfaspede.ino
1 parent 5087208 commit 71f9cfa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Kooditoteutus/alfa/alfaspede/alfaspede.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ ISR(PCINT2_vect) {
6767
buttonNumber = pin - 2; // Store the button number
6868
break;
6969
}
70+
buttonNumber = -1; // Reset button state after processing
7071
}
7172
}
7273

@@ -196,7 +197,7 @@ void loop() {
196197
} else if (buttonNumber >= 0 && buttonNumber < 4) { // Buttons 0-3
197198
checkGame(buttonNumber);
198199
}
199-
buttonNumber = -1; // Reset button state after processing
200+
200201
}
201202

202203
// Handle Timer1 interrupts

0 commit comments

Comments
 (0)