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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user