Fixed wrong MEM colors

This commit is contained in:
Sjef Verhoeven PE5PVB
2024-05-27 17:00:33 +02:00
parent 6935955fa7
commit 0d5ab0f9be

View File

@@ -2556,8 +2556,7 @@ void KeyUp() {
if (!memorystore) { if (!memorystore) {
DoMemoryPosTune(); DoMemoryPosTune();
} else { } else {
if (!IsStationEmpty()) memoryposstatus = MEM_EXIST; if (!IsStationEmpty()) memoryposstatus = MEM_EXIST; else memoryposstatus = MEM_DARK;
else memoryposstatus = MEM_NORMAL;
} }
ShowMemoryPos(); ShowMemoryPos();
EEPROM.writeByte(EE_BYTE_MEMORYPOS, memorypos); EEPROM.writeByte(EE_BYTE_MEMORYPOS, memorypos);
@@ -2623,8 +2622,7 @@ void KeyDown() {
if (!memorystore) { if (!memorystore) {
DoMemoryPosTune(); DoMemoryPosTune();
} else { } else {
if (!IsStationEmpty()) memoryposstatus = MEM_EXIST; if (!IsStationEmpty()) memoryposstatus = MEM_EXIST; else memoryposstatus = MEM_DARK;
else memoryposstatus = MEM_NORMAL;
} }
ShowMemoryPos(); ShowMemoryPos();
EEPROM.writeByte(EE_BYTE_MEMORYPOS, memorypos); EEPROM.writeByte(EE_BYTE_MEMORYPOS, memorypos);
@@ -2678,6 +2676,11 @@ void ShowMemoryPos() {
if (tunemode == TUNE_MEM) { if (tunemode == TUNE_MEM) {
int memposcolor = 0; int memposcolor = 0;
int memposcolorsmooth = 0; int memposcolorsmooth = 0;
if (!memorystore) {
if (IsStationEmpty()) memoryposstatus = MEM_DARK; else memoryposstatus = MEM_NORMAL;
}
switch (memoryposstatus) { switch (memoryposstatus) {
case MEM_DARK: case MEM_DARK:
memposcolor = InsignificantColor; memposcolor = InsignificantColor;