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