diff --git a/WifiControlSensor/WifiControlSensor.ino b/WifiControlSensor/WifiControlSensor.ino index e56e167..ae149eb 100644 --- a/WifiControlSensor/WifiControlSensor.ino +++ b/WifiControlSensor/WifiControlSensor.ino @@ -138,11 +138,21 @@ void OTASetup() { }); ArduinoOTA.onError([](ota_error_t error) { SKETCH_DEBUG_PRINTF("Error[%u]: ", error); - if (error == OTA_AUTH_ERROR){ SKETCH_DEBUG_PRINTLN("Auth Failed");} - else if (error == OTA_BEGIN_ERROR){ 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");} + if (error == OTA_AUTH_ERROR) { + SKETCH_DEBUG_PRINTLN("Auth Failed"); + } + else if (error == OTA_BEGIN_ERROR) { + 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(); SKETCH_DEBUG_PRINTLN("Ready");