Ensure OTA errors are sent in single UDP packet (#787)

OTA text error messages were getting lost because they were sent in
multiple UDP packets, one per print(). Now collect the full error and
report in a single print, allowing text messages to appear in ESPOTA.
This commit was merged in pull request #787.
This commit is contained in:
Earle F. Philhower, III
2022-08-21 15:29:23 -07:00
committed by GitHub
parent 2044d2e51c
commit a3f4d89bc4
2 changed files with 20 additions and 13 deletions
+1 -1
View File
@@ -248,7 +248,7 @@ void ArduinoOTAClass::_runUpdate() {
OTA_DEBUG.println("LittleFS Begin Error");
#endif
_udp_ota->append("ERR: ", 5);
_udp_ota->append("no filesystem", 13);
_udp_ota->append("No Filesystem", 13);
_udp_ota->send(ota_ip, _ota_udp_port);
delay(100);
_udp_ota->listen(IP_ADDR_ANY, _port);