Memory channel only shown when in memory mode
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user