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