Skip to content

Commit c66e606

Browse files
authored
Merge pull request #245 from openhamclock/fb-backspace
Fix various key support in fb mode
2 parents b30ecd0 + d2359f1 commit c66e606

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)