Fixed an exception with end

enhance/v120
Hieromon Ikasamo 5 years ago
parent 26e7a91821
commit 6b1539d551
  1. 1
      src/AutoConnect.cpp
  2. 2
      src/AutoConnect.h

@ -380,7 +380,6 @@ bool AutoConnect::_getConfigSTA(station_config_t* config) {
* Stops AutoConnect captive portal service. * Stops AutoConnect captive portal service.
*/ */
void AutoConnect::end(void) { void AutoConnect::end(void) {
_responsePage.reset();
_currentPageElement.reset(); _currentPageElement.reset();
_ticker.reset(); _ticker.reset();
_update.reset(); _update.reset();

@ -220,7 +220,7 @@ class AutoConnect {
public: public:
AutoConnect(); AutoConnect();
AutoConnect(WebServerClass& webServer); AutoConnect(WebServerClass& webServer);
~AutoConnect(); virtual ~AutoConnect();
bool begin(void); bool begin(void);
bool begin(const char* ssid, const char* passphrase = nullptr, unsigned long timeout = AUTOCONNECT_TIMEOUT); bool begin(const char* ssid, const char* passphrase = nullptr, unsigned long timeout = AUTOCONNECT_TIMEOUT);
bool config(AutoConnectConfig& Config); bool config(AutoConnectConfig& Config);

Loading…
Cancel
Save