From a54c67e062504a24c92342cb76ca976ca2e01cb8 Mon Sep 17 00:00:00 2001 From: livello Date: Fri, 29 Jun 2018 10:44:02 +0300 Subject: [PATCH] fix wifimanager without esp --- lighthub/main.cpp | 2 +- platformio.ini | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lighthub/main.cpp b/lighthub/main.cpp index 4b050ec..1418c0d 100644 --- a/lighthub/main.cpp +++ b/lighthub/main.cpp @@ -1046,7 +1046,7 @@ void setup_main() { ArtnetSetup(); #endif -#ifndef WIFI_MANAGER_DISABLE +#if defined(__ESP__) and not defined(WIFI_MANAGER_DISABLE) WiFiManager wifiManager; #if defined(ESP_WIFI_AP) and defined(ESP_WIFI_PWD) wifiManager.autoConnect(QUOTE(ESP_WIFI_AP), QUOTE(ESP_WIFI_PWD)); diff --git a/platformio.ini b/platformio.ini index 8a32709..f2f3e70 100644 --- a/platformio.ini +++ b/platformio.ini @@ -10,9 +10,9 @@ [platformio] src_dir = lighthub env_default = -; megaatmega2560 + megaatmega2560 ; due - esp8266 +; esp8266 ; megaatmega2560-5500 ; due-5500 ; controllino