diff --git a/src/AutoConnect.cpp b/src/AutoConnect.cpp index 2928cde..85d170b 100644 --- a/src/AutoConnect.cpp +++ b/src/AutoConnect.cpp @@ -96,7 +96,7 @@ bool AutoConnect::begin(const char* ssid, const char* passphrase, unsigned long } // Attach AutoConnectOTA if OTA is available. - if (_apConfig.ota != AC_OTA_NONE) { + if (_apConfig.ota == AC_OTA_BUILTIN) { _ota.reset(new AutoConnectOTA()); _ota->attach(*this); _ota->setTicker(_apConfig.tickerPort, _apConfig.tickerOn); diff --git a/src/AutoConnect.h b/src/AutoConnect.h index ebd04e4..dd703ce 100644 --- a/src/AutoConnect.h +++ b/src/AutoConnect.h @@ -57,9 +57,8 @@ typedef enum AC_ONBOOTURI { /**< Specifier for using built-in OTA */ typedef enum AC_OTA { - AC_OTA_NONE, - AC_OTA_USE, - AC_OTA_USEAUTH + AC_OTA_EXTRA, + AC_OTA_BUILTIN } AC_OTA_t; /**< An enumerated type of the designated menu items. */ @@ -103,7 +102,7 @@ class AutoConnectConfig { ticker(false), tickerPort(AUTOCONNECT_TICKER_PORT), tickerOn(LOW), - ota(AC_OTA_NONE), + ota(AC_OTA_EXTRA), hostName(String("")), homeUri(AUTOCONNECT_HOMEURI), title(AUTOCONNECT_MENU_TITLE), @@ -137,7 +136,7 @@ class AutoConnectConfig { ticker(false), tickerPort(AUTOCONNECT_TICKER_PORT), tickerOn(LOW), - ota(AC_OTA_NONE), + ota(AC_OTA_EXTRA), hostName(String("")), homeUri(AUTOCONNECT_HOMEURI), title(AUTOCONNECT_MENU_TITLE),