mirror of
https://github.com/espressif/arduino-esp32
synced 2024-09-21 02:18:29 +00:00
fix: ArduinoOTA - change occurrence of client.flush() to clear() (#10233)
This commit is contained in:
parent
99e68a0518
commit
6f84a43611
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user