Skip to content

Commit e6a53c1

Browse files
committed
Merge pull request esp8266#1100 from skorokithakis/master
Fix typo.
2 parents 470b2b0 + e9f2f1c commit e6a53c1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

libraries/ArduinoOTA/ArduinoOTA.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,11 @@ void ArduinoOTAClass::_runUpdate() {
266266
delay(1);
267267
if (!waited){
268268
#if OTA_DEBUG
269-
Serial.printf("Recieve Failed\n");
269+
Serial.printf("Receive Failed\n");
270270
#endif
271271
_udp_ota->listen(*IP_ADDR_ANY, _port);
272272
if (_error_callback) {
273-
_error_callback(OTA_RECIEVE_ERROR);
273+
_error_callback(OTA_RECEIVE_ERROR);
274274
}
275275
_state = OTA_IDLE;
276276
}

libraries/ArduinoOTA/ArduinoOTA.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ typedef enum {
2020
OTA_AUTH_ERROR,
2121
OTA_BEGIN_ERROR,
2222
OTA_CONNECT_ERROR,
23-
OTA_RECIEVE_ERROR,
23+
OTA_RECEIVE_ERROR,
2424
OTA_END_ERROR
2525
} ota_error_t;
2626

libraries/ArduinoOTA/examples/BasicOTA/BasicOTA.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void setup() {
4040
if (error == OTA_AUTH_ERROR) Serial.println("Auth Failed");
4141
else if (error == OTA_BEGIN_ERROR) Serial.println("Begin Failed");
4242
else if (error == OTA_CONNECT_ERROR) Serial.println("Connect Failed");
43-
else if (error == OTA_RECIEVE_ERROR) Serial.println("Receive Failed");
43+
else if (error == OTA_RECEIVE_ERROR) Serial.println("Receive Failed");
4444
else if (error == OTA_END_ERROR) Serial.println("End Failed");
4545
});
4646
ArduinoOTA.begin();

0 commit comments

Comments
 (0)