Skip to content

Commit be03cf3

Browse files
committed
Fix stupid bug on UnbufferedSerial
1 parent 2893f54 commit be03cf3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cores/arduino/Serial.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ void UART::begin(unsigned long baudrate) {
8787
void UART::on_rx() {
8888
while(_serial->readable()) {
8989
char c;
90-
rx_buffer.store_char(_serial->read(&c, 1));
90+
_serial->read(&c, 1);
91+
rx_buffer.store_char(c);
9192
}
9293
}
9394

0 commit comments

Comments
 (0)