Skip to content

EthernetClient flush() is pre-1.0 input discard #1576

Closed
@PaulStoffregen

Description

@PaulStoffregen

EthernetClient.cpp in 1.5.x has old pre-1.0 flush() function that discards input. Arduino 1.0 changed flush() to complete transmission.

https://github.com/arduino/Arduino/blob/ide-1.5.x/libraries/Ethernet/src/EthernetClient.cpp#L122

void EthernetClient::flush() {
while (available())
read();
}

Metadata

Metadata

Assignees

Labels

Component: CoreRelated to the code for the standard Arduino APILibrary: EthernetThe Ethernet Arduino library

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions