Fixed sometimes wrong memory channel selected after DX scan ended

This commit is contained in:
Sjef Verhoeven PE5PVB
2025-01-23 12:22:48 +01:00
parent 261e0197db
commit 13c17d7fb7

View File

@@ -4747,6 +4747,7 @@ void UpdateFonts(byte mode) {
void cancelDXScan() {
tunemode = scanmodeold;
memorypos = memoryposold;
scandxmode = false;
if (scanmute) {
radio.setUnMute();
@@ -4893,6 +4894,7 @@ void startFMDXScan() {
freq_in = 0;
}
memoryposold = memorypos;
if (memorypos > scanstop || memorypos < scanstart) memorypos = scanstart;
scanmodeold = tunemode;