diff --git a/WifiControlSensor/WifiControlSensor.ino b/WifiControlSensor/WifiControlSensor.ino index ba075ac..607d487 100644 --- a/WifiControlSensor/WifiControlSensor.ino +++ b/WifiControlSensor/WifiControlSensor.ino @@ -118,8 +118,8 @@ void WifiSetup(int bootmode, char *confSsid, char *confPassword, char *confHost, SKETCH_DEBUG_PRINT("My IP address: "); SKETCH_DEBUG_PRINTLN(myIP); } - void OTASetup() { +#ifndef CONFIF_DISABLE_OTA // Port defaults to 8266 // ArduinoOTA.setPort(8266); @@ -165,6 +165,7 @@ void OTASetup() { SKETCH_DEBUG_PRINT("IP address: "); SKETCH_DEBUG_PRINTLN(WiFi.localIP()); SKETCH_DEBUG_PRINTF("Free Space: %d\n", ESP.getFreeSketchSpace()); +#endif } void setup() {