Skip to content

Commit d2359f1

Browse files
committed
Redo fix with just backspace key support
The last fix (now reverted) apparently broke all the keys. Focusing on the bug report, we only need to fix the backspace key.
1 parent 821f6a4 commit d2359f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ESPHamClock/ArduinoLib/Adafruit_RA8875.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2871,7 +2871,7 @@ void Adafruit_RA8875::kbThread ()
28712871
if (nr == 1) {
28722872
// arrow keys need a state machine to parse ESC [ A/B/C/D, plus non-block for normal ESC
28732873
::printf ("KB: %d %c\n", buf[0], buf[0]);
2874-
if (isprint(buf[0])) {
2874+
if (isprint(buf[0]) || buf[0] == 8 || buf[0] == 127) {
28752875
pthread_mutex_lock (&kb_lock);
28762876
KBState &ks = kb_q[kb_qtail];
28772877
ks.c = buf[0];

0 commit comments

Comments
 (0)