Skip to content

Commit b301a8d

Browse files
committed
Key 5, long press - toggle scan list, F + short press - spectrum
1 parent 339e280 commit b301a8d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ ENABLE_CODE_SCAN_TIMEOUT := 0
2929
ENABLE_AM_FIX := 1
3030
ENABLE_AM_FIX_SHOW_DATA := 0
3131
ENABLE_SQUELCH_LOWER := 0
32-
ENABLE_FASTER_CHANNEL_SCAN := 1ENABLE_RSSI_BAR := 1
32+
ENABLE_FASTER_CHANNEL_SCAN := 1
33+
ENABLE_RSSI_BAR := 1
3334
ENABLE_AUDIO_BAR := 1
3435
ENABLE_SPECTRUM := 1
3536
#ENABLE_COPY_CHAN_TO_VFO := 1

app/main.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ static void processFKeyFunction(const KEY_Code_t Key, const bool beep)
167167
break;
168168

169169
case KEY_5:
170+
if(beep) {
170171
#ifdef ENABLE_NOAA
171172
if (IS_NOT_NOAA_CHANNEL(gTxVfo->CHANNEL_SAVE))
172173
{
@@ -184,7 +185,9 @@ static void processFKeyFunction(const KEY_Code_t Key, const bool beep)
184185
#elif defined(ENABLE_SPECTRUM)
185186
APP_RunSpectrum();
186187
gRequestDisplayScreen = DISPLAY_MAIN;
187-
#else
188+
#endif
189+
}
190+
else {
188191
// toggle scanlist-1 and scanlist 2
189192
if (gScreenToDisplay != DISPLAY_SCANNER)
190193
{
@@ -206,7 +209,7 @@ static void processFKeyFunction(const KEY_Code_t Key, const bool beep)
206209
gVfoConfigureMode = VFO_CONFIGURE;
207210
gFlagResetVfos = true;
208211
}
209-
#endif
212+
}
210213
break;
211214

212215
case KEY_6:

0 commit comments

Comments
 (0)