mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-15 23:51:20 +10:00
wifimanager.cpp / wifimanager.h
added define that checks on esp32 or esp8266. If another hardware is selectec, then do not try to compile this code.
This commit is contained in:
@@ -12,6 +12,8 @@
|
||||
|
||||
#include "WiFiManager.h"
|
||||
|
||||
#if defined(ESP8266) || defined(ESP32)
|
||||
|
||||
#ifdef ESP32
|
||||
uint8_t WiFiManager::_lastconxresulttmp = WL_IDLE_STATUS;
|
||||
#endif
|
||||
@@ -2700,3 +2702,5 @@ void WiFiManager::WiFi_autoReconnect(){
|
||||
// }
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -10,9 +10,12 @@
|
||||
* @license MIT
|
||||
*/
|
||||
|
||||
|
||||
#ifndef WiFiManager_h
|
||||
#define WiFiManager_h
|
||||
|
||||
#if defined(ESP8266) || defined(ESP32)
|
||||
|
||||
#ifdef ESP8266
|
||||
#include <core_version.h>
|
||||
#endif
|
||||
@@ -506,3 +509,5 @@ class WiFiManager
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user