From 6f84a436117324e1b4ed762368a2f2551f1df78b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20Andr=C3=A1ssy?= <10706773+JAndrassy@users.noreply.github.com> Date: Wed, 28 Aug 2024 08:53:43 +0200 Subject: [PATCH] fix: ArduinoOTA - change occurrence of client.flush() to clear() (#10233) --- 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() {