Changed AC_OTA_t type enum

pull/197/head
Hieromon Ikasamo 5 years ago
parent de615b3738
commit 5ac4372da3
  1. 2
      src/AutoConnect.cpp
  2. 9
      src/AutoConnect.h

@ -96,7 +96,7 @@ bool AutoConnect::begin(const char* ssid, const char* passphrase, unsigned long
} }
// Attach AutoConnectOTA if OTA is available. // Attach AutoConnectOTA if OTA is available.
if (_apConfig.ota != AC_OTA_NONE) { if (_apConfig.ota == AC_OTA_BUILTIN) {
_ota.reset(new AutoConnectOTA()); _ota.reset(new AutoConnectOTA());
_ota->attach(*this); _ota->attach(*this);
_ota->setTicker(_apConfig.tickerPort, _apConfig.tickerOn); _ota->setTicker(_apConfig.tickerPort, _apConfig.tickerOn);

@ -57,9 +57,8 @@ typedef enum AC_ONBOOTURI {
/**< Specifier for using built-in OTA */ /**< Specifier for using built-in OTA */
typedef enum AC_OTA { typedef enum AC_OTA {
AC_OTA_NONE, AC_OTA_EXTRA,
AC_OTA_USE, AC_OTA_BUILTIN
AC_OTA_USEAUTH
} AC_OTA_t; } AC_OTA_t;
/**< An enumerated type of the designated menu items. */ /**< An enumerated type of the designated menu items. */
@ -103,7 +102,7 @@ class AutoConnectConfig {
ticker(false), ticker(false),
tickerPort(AUTOCONNECT_TICKER_PORT), tickerPort(AUTOCONNECT_TICKER_PORT),
tickerOn(LOW), tickerOn(LOW),
ota(AC_OTA_NONE), ota(AC_OTA_EXTRA),
hostName(String("")), hostName(String("")),
homeUri(AUTOCONNECT_HOMEURI), homeUri(AUTOCONNECT_HOMEURI),
title(AUTOCONNECT_MENU_TITLE), title(AUTOCONNECT_MENU_TITLE),
@ -137,7 +136,7 @@ class AutoConnectConfig {
ticker(false), ticker(false),
tickerPort(AUTOCONNECT_TICKER_PORT), tickerPort(AUTOCONNECT_TICKER_PORT),
tickerOn(LOW), tickerOn(LOW),
ota(AC_OTA_NONE), ota(AC_OTA_EXTRA),
hostName(String("")), hostName(String("")),
homeUri(AUTOCONNECT_HOMEURI), homeUri(AUTOCONNECT_HOMEURI),
title(AUTOCONNECT_MENU_TITLE), title(AUTOCONNECT_MENU_TITLE),

Loading…
Cancel
Save