Added brackets around each byte received in debug 5.

This commit is contained in:
Unknown 2017-06-02 20:14:22 +02:00
parent a738a248c7
commit 1907bbab21
1 changed files with 2 additions and 0 deletions

View File

@ -162,11 +162,13 @@ void serial_transmit() {
}
char send_ascii(char c) {
if (DEBUG >= 5) Serial.print("[");
switch (c) {
case 0x0d: Serial.println(); /* Replace CR with LF */
default:
Serial.print(c);
}
if (DEBUG >= 5) Serial.print("]");
}
void loop() {