Skip to content

Commit 6f84a43

Browse files
authored
fix: ArduinoOTA - change occurrence of client.flush() to clear() (#10233)
1 parent 99e68a0 commit 6f84a43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libraries/ArduinoOTA/src/ArduinoOTA.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ void ArduinoOTAClass::handle() {
376376
if (_udp_ota.parsePacket()) {
377377
_onRx();
378378
}
379-
_udp_ota.flush(); // always flush, even zero length packets must be flushed.
379+
_udp_ota.clear(); // always clear, even zero length packets must be cleared.
380380
}
381381

382382
int ArduinoOTAClass::getCommand() {

0 commit comments

Comments
 (0)