Memory channel only shown when in memory mode

This commit is contained in:
Sjef Verhoeven PE5PVB
2023-06-28 22:49:14 +02:00
parent 4ae2ed6be2
commit 1df58d77c5

View File

@@ -2457,12 +2457,18 @@ void KeyDown() {
}
void ShowMemoryPos() {
tft.setFreeFont(FONT7);
tft.setTextColor(TFT_BLACK);
tft.drawString(String(memoryposold + 1), 80, 26, GFXFF);
tft.setTextColor(TFT_SKYBLUE);
tft.drawString(String(memorypos + 1), 80, 26, GFXFF);
memoryposold = memorypos;
if (tunemode == TUNE_MEM) {
tft.setFreeFont(FONT7);
tft.setTextColor(TFT_BLACK);
tft.drawString(String(memoryposold + 1), 80, 26, GFXFF);
tft.setTextColor(TFT_SKYBLUE);
tft.drawString(String(memorypos + 1), 80, 26, GFXFF);
memoryposold = memorypos;
} else {
tft.setFreeFont(FONT7);
tft.setTextColor(TFT_BLACK);
tft.drawString(String(memorypos + 1), 80, 26, GFXFF);
}
}
void DoMemoryPosTune() {
@@ -3740,6 +3746,7 @@ void doTuneMode() {
break;
}
ShowTuneMode();
ShowMemoryPos();
ShowFreq(0);
EEPROM.writeByte(41, tunemode);
EEPROM.commit();