Skip to content

Commit 8ef43be

Browse files
committed
Fix printing of binary chars
1 parent c4ad8ab commit 8ef43be

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Firmware/LoRaSerial_Firmware/System.ino

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,11 @@ void systemPrintln()
7676

7777
void systemWrite(uint8_t value)
7878
{
79-
char temp[2];
80-
sprintf(temp, "%c", value);
81-
systemPrint(temp);
79+
Serial.write(value);
80+
81+
#if defined(ARDUINO_ARCH_SAMD)
82+
Serial1.write(value);
83+
#endif
8284
}
8385

8486
void systemFlush()

0 commit comments

Comments
 (0)