Possibility to disable OTA
save ~3k
This commit is contained in:
parent
a14210e0d9
commit
87085fba3d
@ -118,8 +118,8 @@ void WifiSetup(int bootmode, char *confSsid, char *confPassword, char *confHost,
|
|||||||
SKETCH_DEBUG_PRINT("My IP address: ");
|
SKETCH_DEBUG_PRINT("My IP address: ");
|
||||||
SKETCH_DEBUG_PRINTLN(myIP);
|
SKETCH_DEBUG_PRINTLN(myIP);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OTASetup() {
|
void OTASetup() {
|
||||||
|
#ifndef CONFIF_DISABLE_OTA
|
||||||
// Port defaults to 8266
|
// Port defaults to 8266
|
||||||
// ArduinoOTA.setPort(8266);
|
// ArduinoOTA.setPort(8266);
|
||||||
|
|
||||||
@ -165,6 +165,7 @@ void OTASetup() {
|
|||||||
SKETCH_DEBUG_PRINT("IP address: ");
|
SKETCH_DEBUG_PRINT("IP address: ");
|
||||||
SKETCH_DEBUG_PRINTLN(WiFi.localIP());
|
SKETCH_DEBUG_PRINTLN(WiFi.localIP());
|
||||||
SKETCH_DEBUG_PRINTF("Free Space: %d\n", ESP.getFreeSketchSpace());
|
SKETCH_DEBUG_PRINTF("Free Space: %d\n", ESP.getFreeSketchSpace());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
|
Loading…
Reference in New Issue
Block a user