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

Commit 30dfce1

Browse files
committed
Added backspace support
1 parent 11c2f01 commit 30dfce1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

SerialCommand.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,11 @@ void SerialCommand::readSerial() {
124124
#endif
125125
}
126126
}
127+
else if (inChar == 127 || inChar == 8) {
128+
bufPos--;
129+
buffer[bufPos] = 0;
130+
Serial.print(" \b");
131+
}
127132
}
128133
}
129134

0 commit comments

Comments
 (0)