Skip to content

Commit

Permalink
simplify!
Browse files Browse the repository at this point in the history
  • Loading branch information
prokrypt committed Jul 23, 2024
1 parent 3944fd5 commit 25adfc9
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions app/chFrScanner.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ static void NextMemChannel(void);

void CHFRSCANNER_Start(const bool storeBackupSettings, const int8_t scan_direction)
{
unsigned int chan;

if (storeBackupSettings) {
initialCROSS_BAND_RX_TX = gEeprom.CROSS_BAND_RX_TX;
gEeprom.CROSS_BAND_RX_TX = CROSS_BAND_OFF;
Expand All @@ -57,13 +55,10 @@ void CHFRSCANNER_Start(const bool storeBackupSettings, const int8_t scan_directi
gScanStateDir = scan_direction;

if (gEeprom.DUAL_WATCH != DUAL_WATCH_OFF) {
chan = (gEeprom.RX_VFO + 1) & 1u;
chan = gEeprom.ScreenChannel[chan];
if (IS_MR_CHANNEL(chan))
{
currentScanList = SCAN_NEXT_CHAN_DUAL_WATCH;
dwchan = chan;
}
dwchan = (gEeprom.RX_VFO + 1) & 1u;
dwchan = gEeprom.ScreenChannel[dwchan];
if (!IS_MR_CHANNEL(dwchan))
dwchan = 0;

}

Expand Down

0 comments on commit 25adfc9

Please sign in to comment.