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:
sidey79
2019-01-08 23:33:56 +01:00
parent 862e2dbde2
commit 1282c4d5b5
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -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