Oprava jmena magic cisla.
This commit is contained in:
parent
349bc68180
commit
baef6c322e
@ -12,7 +12,7 @@
|
||||
#include <WiFiConfig.h>
|
||||
#include <encipheredEEPROMStrings.h>
|
||||
|
||||
#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);
|
||||
|
Loading…
Reference in New Issue
Block a user