first command works

This commit is contained in:
Wolfgang Hottgenroth 2019-04-06 20:52:43 +02:00
parent f5aeeb9d23
commit cef2749111
Signed by: wn
GPG Key ID: B586EAFCDF2F65F4
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ void setup() {
pinMode(CONFIG_SWITCH, INPUT_PULLUP);
EEPROM.begin(512);
EEPROM.begin(1024);
EEPROM.get(EEPROM_ADDR, configBlock);

View File

@ -349,7 +349,7 @@ void configServeGetConfiguration() {
showConfiguration();
EEPROM.begin(512);
EEPROM.begin(1024);
EEPROM.put(EEPROM_ADDR, configBlock);
EEPROM.commit();