From 581c172e8e925a62e63674de1a42969f42b839ba Mon Sep 17 00:00:00 2001 From: Andrey Klimov Date: Fri, 22 Mar 2019 02:26:06 +0300 Subject: [PATCH] few ESP improvements --- lighthub/main.cpp | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/lighthub/main.cpp b/lighthub/main.cpp index 3999c72..c206871 100644 --- a/lighthub/main.cpp +++ b/lighthub/main.cpp @@ -582,18 +582,27 @@ void onInitialStateInitLAN() { #if defined(ARDUINO_ARCH_ESP8266) and defined(WIFI_MANAGER_DISABLE) if(!wifiInitialized) { WiFi.mode(WIFI_STA); - debugSerial< 0) { + delay(500); + wifi_connection_wait -= 500; + debugSerial<<"."; + } wifiInitialized = true; } #endif -#ifdef ARDUINO_ARCH_ESP32 +#if defined(ARDUINO_ARCH_ESP32) and defined(WIFI_MANAGER_DISABLE) if(!wifiInitialized) { // WiFi.mode(WIFI_STA); WiFi.disconnect(); - debugSerial<