From 8666de17ef775b1e2ab67a30b8d234f9a69d1855 Mon Sep 17 00:00:00 2001 From: Juraj Andrassy Date: Sat, 24 Aug 2024 18:25:45 +0200 Subject: [PATCH] fix: ArduinoOTA - change occurrence of client.flush() to clear() --- libraries/ArduinoOTA/src/ArduinoOTA.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/ArduinoOTA/src/ArduinoOTA.cpp b/libraries/ArduinoOTA/src/ArduinoOTA.cpp index 769193efb69..160c55764fe 100644 --- a/libraries/ArduinoOTA/src/ArduinoOTA.cpp +++ b/libraries/ArduinoOTA/src/ArduinoOTA.cpp @@ -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() {