Skip to content

HardwareSerial flush problem #1463

Closed
Closed
@xxxajk

Description

@xxxajk

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);

fixes the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: CoreRelated to the code for the standard Arduino API

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions