Hotfix: When starting the FM DX scanner from the menu, the screen was not building up properly.

This commit is contained in:
Sjef Verhoeven PE5PVB
2024-06-15 12:44:10 +02:00
parent ca9dd47e25
commit d4ec70720d
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -4507,8 +4507,9 @@ void endMenu() {
} }
void startFMDXScan() { void startFMDXScan() {
menu = false;
initdxscan = true; initdxscan = true;
if (menu) endMenu();
if (afscreen || advancedRDS) BuildDisplay(); if (afscreen || advancedRDS) BuildDisplay();
if (memorypos > scanstop || memorypos < scanstart) memorypos = scanstart; if (memorypos > scanstop || memorypos < scanstart) memorypos = scanstart;
@@ -4520,7 +4521,6 @@ void startFMDXScan() {
band = presets[memorypos].band; band = presets[memorypos].band;
SelectBand(); SelectBand();
} }
if (menu) endMenu();
DoMemoryPosTune(); DoMemoryPosTune();
} else { } else {
tunemode = TUNE_MAN; tunemode = TUNE_MAN;
@@ -4528,7 +4528,6 @@ void startFMDXScan() {
band = presets[memorypos].band; band = presets[memorypos].band;
SelectBand(); SelectBand();
} }
if (menu) endMenu();
TuneUp(); TuneUp();
ShowFreq(0); ShowFreq(0);
} }
@@ -4540,6 +4539,7 @@ void startFMDXScan() {
} }
scantimer = millis(); scantimer = millis();
scandxmode = true; scandxmode = true;
ShowTuneMode();
if (XDRGTKUSB || XDRGTKTCP) DataPrint("J1\n"); if (XDRGTKUSB || XDRGTKTCP) DataPrint("J1\n");
} }
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef LANGUAGE_H #ifndef LANGUAGE_H
#define LANGUAGE_H #define LANGUAGE_H
#define VERSION "v2.10" #define VERSION "v2.11"
// [number of languages][number of texts] // [number of languages][number of texts]