From c942e1b29485cd07966ddf2e6934ca42c859f189 Mon Sep 17 00:00:00 2001 From: Sjef Verhoeven PE5PVB Date: Fri, 14 Jul 2023 09:42:05 +0200 Subject: [PATCH] Bugfix in eeprom managment --- TEF6686_ESP32.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TEF6686_ESP32.ino b/TEF6686_ESP32.ino index 059fc1b..f1281a7 100644 --- a/TEF6686_ESP32.ino +++ b/TEF6686_ESP32.ino @@ -345,7 +345,7 @@ void setup() { fmminstepsize = EEPROM.readByte(261); screensaverset = EEPROM.readByte(262); AMLevelOffset = EEPROM.readInt(263); - unit = EEPROM.readByte(264); + unit = EEPROM.readByte(267); LWLowEdgeSet = FREQ_LW_LOW_EDGE_MIN; // later will read from flash LWHighEdgeSet = FREQ_LW_HIGH_EDGE_MAX; // later will read from flash @@ -1558,7 +1558,7 @@ void ModeButtonPress() { EEPROM.writeByte(261, fmminstepsize); EEPROM.writeByte(262, screensaverset); EEPROM.writeInt(263, AMLevelOffset); - EEPROM.writeByte(264, unit); + EEPROM.writeByte(267, unit); EEPROM.commit(); Serial.end(); if (wifi) remoteip = IPAddress (WiFi.localIP()[0], WiFi.localIP()[1], WiFi.localIP()[2], subnetclient); @@ -5953,6 +5953,6 @@ void DefaultSettings() { EEPROM.writeByte(261, 0); EEPROM.writeByte(262, 0); EEPROM.writeInt(263, 0); - EEPROM.writeByte(264, 0); + EEPROM.writeByte(267, 0); EEPROM.commit(); }