You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HardwareSerial::flush() sits, spins, and never exits.
Mega 1280, Arduino 1.0.5
hardware/arduino/cores/arduino/HardwareSerial.cpp, line 457
replace
while (transmitting && ! (*_ucsra & _BV(TXC0)));
with
while (transmitting && _tx_buffer->head != _tx_buffer->tail);