From baef6c322e3c13d757e33d7d7130a609a3322b8a Mon Sep 17 00:00:00 2001 From: Pavel Brychta Date: Tue, 7 Apr 2020 08:38:52 +0200 Subject: [PATCH] Oprava jmena magic cisla. --- .../WiFiConfig_simple_test/WiFiConfig_simple_test.ino | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/WiFiConfig_simple_test/WiFiConfig_simple_test.ino b/examples/WiFiConfig_simple_test/WiFiConfig_simple_test.ino index 32f5a42..68dff52 100644 --- a/examples/WiFiConfig_simple_test/WiFiConfig_simple_test.ino +++ b/examples/WiFiConfig_simple_test/WiFiConfig_simple_test.ino @@ -12,7 +12,7 @@ #include #include -#define MAGIC 0xdeadbeef +#define EEPROM_MAGIC 0xdeadbeef // Plati pro desticku Witty s modulem ESP-12E #define PIN_FORCE_CONFIG 4 @@ -71,6 +71,10 @@ void ICACHE_FLASH_ATTR wcb(wificonfigstate_t state) case WCS_CONFIGWAIT: break; + + case WCS_CONFIGTIMEOUT: + DEBUG_OUT(F("Config timeout...\r\n")); + break; } } @@ -102,7 +106,7 @@ void ICACHE_FLASH_ATTR setup() pinMode(PIN_FORCE_CONFIG, INPUT_PULLUP); // pin, co slouzi jako vstup tlacitka int fc = digitalRead(PIN_FORCE_CONFIG); // pozadavek na vynucene vyvolani konfigurace - Serial.begin(9600); + Serial.begin(115200); String dn = EES_readString(EEPROM_CONFIG_ORIGIN + offsetof(eepromconfig_t, devname), elementSize(eepromconfig_t, devname)); strcpy(WiFiDeviceName, dn.c_str()); wifi.addParameter(&devname);