1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

Merge remote-tracking branch 'esp8266/master'

This commit is contained in:
Me No Dev 2015-11-29 23:29:04 +02:00
commit 4c81c2bb16
3 changed files with 4 additions and 4 deletions

View File

@ -266,11 +266,11 @@ void ArduinoOTAClass::_runUpdate() {
delay(1); delay(1);
if (!waited){ if (!waited){
#if OTA_DEBUG #if OTA_DEBUG
Serial.printf("Recieve Failed\n"); Serial.printf("Receive Failed\n");
#endif #endif
_udp_ota->listen(*IP_ADDR_ANY, _port); _udp_ota->listen(*IP_ADDR_ANY, _port);
if (_error_callback) { if (_error_callback) {
_error_callback(OTA_RECIEVE_ERROR); _error_callback(OTA_RECEIVE_ERROR);
} }
_state = OTA_IDLE; _state = OTA_IDLE;
} }

View File

@ -20,7 +20,7 @@ typedef enum {
OTA_AUTH_ERROR, OTA_AUTH_ERROR,
OTA_BEGIN_ERROR, OTA_BEGIN_ERROR,
OTA_CONNECT_ERROR, OTA_CONNECT_ERROR,
OTA_RECIEVE_ERROR, OTA_RECEIVE_ERROR,
OTA_END_ERROR OTA_END_ERROR
} ota_error_t; } ota_error_t;

View File

@ -40,7 +40,7 @@ void setup() {
if (error == OTA_AUTH_ERROR) Serial.println("Auth Failed"); if (error == OTA_AUTH_ERROR) Serial.println("Auth Failed");
else if (error == OTA_BEGIN_ERROR) Serial.println("Begin Failed"); else if (error == OTA_BEGIN_ERROR) Serial.println("Begin Failed");
else if (error == OTA_CONNECT_ERROR) Serial.println("Connect Failed"); else if (error == OTA_CONNECT_ERROR) Serial.println("Connect Failed");
else if (error == OTA_RECIEVE_ERROR) Serial.println("Receive Failed"); else if (error == OTA_RECEIVE_ERROR) Serial.println("Receive Failed");
else if (error == OTA_END_ERROR) Serial.println("End Failed"); else if (error == OTA_END_ERROR) Serial.println("End Failed");
}); });
ArduinoOTA.begin(); ArduinoOTA.begin();