Skip to content

Commit

Permalink
Merge pull request #3207 from chromhelm/master
Browse files Browse the repository at this point in the history
Fixed bug with HWSerial flushing
  • Loading branch information
facchinm committed May 28, 2015
2 parents bd8f793 + ed331a8 commit f816e76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hardware/arduino/avr/cores/arduino/HardwareSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ size_t HardwareSerial::write(uint8_t c)
if (_tx_buffer_head == _tx_buffer_tail && bit_is_set(*_ucsra, UDRE0)) {
*_udr = c;
sbi(*_ucsra, TXC0);
_written = true;
return 1;
}
tx_buffer_index_t i = (_tx_buffer_head + 1) % SERIAL_TX_BUFFER_SIZE;
Expand Down

0 comments on commit f816e76

Please sign in to comment.