Fixed bug deleting non FM memory channels

This commit is contained in:
Sjef Verhoeven PE5PVB
2024-05-26 17:08:09 +02:00
parent b0b282dce7
commit 5254bfd348
2 changed files with 3 additions and 1 deletions

View File

@@ -1587,8 +1587,10 @@ void BANDBUTTONPress() {
cancelDXScan();
} else {
if (memorystore) {
EEPROM.writeByte(memorypos + EE_PRESETS_BAND_START, BAND_FM);
EEPROM.writeUInt((memorypos * 4) + EE_PRESETS_FREQUENCY_START, EE_PRESETS_FREQUENCY);
EEPROM.commit();
presets[memorypos].band = BAND_FM;
presets[memorypos].frequency = EE_PRESETS_FREQUENCY;
memorystore = false;
ShowTuneMode();