Skip to content

Commit

Permalink
fix: ArduinoOTA - change occurrence of client.flush() to clear() (#10233
Browse files Browse the repository at this point in the history
)
  • Loading branch information
JAndrassy authored Aug 28, 2024
1 parent 99e68a0 commit 6f84a43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/ArduinoOTA/src/ArduinoOTA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ void ArduinoOTAClass::handle() {
if (_udp_ota.parsePacket()) {
_onRx();
}
_udp_ota.flush(); // always flush, even zero length packets must be flushed.
_udp_ota.clear(); // always clear, even zero length packets must be cleared.
}

int ArduinoOTAClass::getCommand() {
Expand Down

0 comments on commit 6f84a43

Please sign in to comment.