Skip to content

Commit 0e9315d

Browse files
committed
Prevent 255 from being returned as a key
1 parent 04d3e8f commit 0e9315d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

keyboardv1/keyboardv1.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void loop() {
5555
if (useSerialLibrary) {
5656
Serial.print("Raw char: "); Serial.print(key); Serial.print(" decimal 0b"); Serial.println(key, BIN);
5757
}
58-
if (key != 0) {
58+
if (key != 0 && key != 255) {
5959
// If the keyboard has no power it will return all lows, sending back an avalanche of
6060
// zeros. Ignore (for now?)
6161
sendChar(key);

0 commit comments

Comments
 (0)