Reindent
This commit is contained in:
parent
0dd9901d19
commit
a204d6fddf
@ -138,11 +138,21 @@ void OTASetup() {
|
|||||||
});
|
});
|
||||||
ArduinoOTA.onError([](ota_error_t error) {
|
ArduinoOTA.onError([](ota_error_t error) {
|
||||||
SKETCH_DEBUG_PRINTF("Error[%u]: ", error);
|
SKETCH_DEBUG_PRINTF("Error[%u]: ", error);
|
||||||
if (error == OTA_AUTH_ERROR){ SKETCH_DEBUG_PRINTLN("Auth Failed");}
|
if (error == OTA_AUTH_ERROR) {
|
||||||
else if (error == OTA_BEGIN_ERROR){ SKETCH_DEBUG_PRINTLN("Begin Failed");}
|
SKETCH_DEBUG_PRINTLN("Auth Failed");
|
||||||
else if (error == OTA_CONNECT_ERROR){ SKETCH_DEBUG_PRINTLN("Connect Failed");}
|
}
|
||||||
else if (error == OTA_RECEIVE_ERROR){ SKETCH_DEBUG_PRINTLN("Receive Failed");}
|
else if (error == OTA_BEGIN_ERROR) {
|
||||||
else if (error == OTA_END_ERROR){ SKETCH_DEBUG_PRINTLN("End Failed");}
|
SKETCH_DEBUG_PRINTLN("Begin Failed");
|
||||||
|
}
|
||||||
|
else if (error == OTA_CONNECT_ERROR) {
|
||||||
|
SKETCH_DEBUG_PRINTLN("Connect Failed");
|
||||||
|
}
|
||||||
|
else if (error == OTA_RECEIVE_ERROR) {
|
||||||
|
SKETCH_DEBUG_PRINTLN("Receive Failed");
|
||||||
|
}
|
||||||
|
else if (error == OTA_END_ERROR) {
|
||||||
|
SKETCH_DEBUG_PRINTLN("End Failed");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
ArduinoOTA.begin();
|
ArduinoOTA.begin();
|
||||||
SKETCH_DEBUG_PRINTLN("Ready");
|
SKETCH_DEBUG_PRINTLN("Ready");
|
||||||
|
Loading…
Reference in New Issue
Block a user