fix: ArduinoOTA - change occurrence of client.flush() to clear() (#10233)

This commit is contained in:
Juraj Andrássy 2024-08-28 08:53:43 +02:00 committed by GitHub
parent 99e68a0518
commit 6f84a43611
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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() {