fix wifimanager without esp

This commit is contained in:
livello
2018-06-29 10:44:02 +03:00
parent 90c21ef125
commit a54c67e062
2 changed files with 3 additions and 3 deletions

View File

@@ -1046,7 +1046,7 @@ void setup_main() {
ArtnetSetup(); ArtnetSetup();
#endif #endif
#ifndef WIFI_MANAGER_DISABLE #if defined(__ESP__) and not defined(WIFI_MANAGER_DISABLE)
WiFiManager wifiManager; WiFiManager wifiManager;
#if defined(ESP_WIFI_AP) and defined(ESP_WIFI_PWD) #if defined(ESP_WIFI_AP) and defined(ESP_WIFI_PWD)
wifiManager.autoConnect(QUOTE(ESP_WIFI_AP), QUOTE(ESP_WIFI_PWD)); wifiManager.autoConnect(QUOTE(ESP_WIFI_AP), QUOTE(ESP_WIFI_PWD));

View File

@@ -10,9 +10,9 @@
[platformio] [platformio]
src_dir = lighthub src_dir = lighthub
env_default = env_default =
; megaatmega2560 megaatmega2560
; due ; due
esp8266 ; esp8266
; megaatmega2560-5500 ; megaatmega2560-5500
; due-5500 ; due-5500
; controllino ; controllino