Fix RX mode restore after scan transitions (Issue #480)

This commit is contained in:
Armel FAUVEAU committed 2026-08-02 17:35:09 +02:00
1 parent 3e5795255d
commit 0203586cdc
3 files changed
+17 -1

No files matched your search

+6
View File
@@ -425,6 +425,12 @@ void ACTION_FM(void)
gMonitor = false;
if (gScanStateDir != SCAN_OFF) {
// Stop the channel/frequency scan before switching to the FM radio.
gScanKeepResult = false;
CHFRSCANNER_Stop();
}
RADIO_SelectVfos();
RADIO_SetupRegisters(true);
+6
View File
@@ -924,6 +924,12 @@ static void MAIN_Key_STAR(bool bKeyPressed, bool bKeyHeld)
return;
}
#endif
if (gScanStateDir != SCAN_OFF) {
// Stop the channel/frequency scan before saving the RX mode for the CTCSS/DCS scan.
gScanKeepResult = false;
CHFRSCANNER_Stop();
}
// scan the CTCSS/DCS code
gBackup_CROSS_BAND_RX_TX = gEeprom.CROSS_BAND_RX_TX;
gEeprom.CROSS_BAND_RX_TX = CROSS_BAND_OFF;
+5 -1
View File
@@ -1581,7 +1581,11 @@ void UI_DisplayMain(void)
}
}
else {
if(RxOnVfofrequency == frequency && !isMainOnly()) {
if(RxOnVfofrequency == frequency && !isMainOnly()
#if defined(ENABLE_FEAT_F4HWN_SCAN_FASTER) && defined(ENABLE_FEAT_F4HWN_SCAN_RSSI)
&& !CHFRSCANNER_HasScanRssiSparkline()
#endif
) {
//UI_PrintStringSmallNormal(">>", 8, 0, line);
//memcpy(p_line0 + 14, BITMAP_VFO_Default, sizeof(BITMAP_VFO_Default));
GUI_DisplaySmallest(">>", 8, RxLine == 0 ? 1 : 33, false, true);