From b301a8d21ee54dfb3baf1908309acbccd204bbf3 Mon Sep 17 00:00:00 2001 From: Krzysiek Egzmont Date: Tue, 3 Oct 2023 18:54:37 +0200 Subject: [PATCH] Key 5, long press - toggle scan list, F + short press - spectrum --- Makefile | 3 ++- app/main.c | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 087125c..ae0a4bc 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,8 @@ ENABLE_CODE_SCAN_TIMEOUT := 0 ENABLE_AM_FIX := 1 ENABLE_AM_FIX_SHOW_DATA := 0 ENABLE_SQUELCH_LOWER := 0 -ENABLE_FASTER_CHANNEL_SCAN := 1ENABLE_RSSI_BAR := 1 +ENABLE_FASTER_CHANNEL_SCAN := 1 +ENABLE_RSSI_BAR := 1 ENABLE_AUDIO_BAR := 1 ENABLE_SPECTRUM := 1 #ENABLE_COPY_CHAN_TO_VFO := 1 diff --git a/app/main.c b/app/main.c index 9686e26..57f9e64 100644 --- a/app/main.c +++ b/app/main.c @@ -167,6 +167,7 @@ static void processFKeyFunction(const KEY_Code_t Key, const bool beep) break; case KEY_5: + if(beep) { #ifdef ENABLE_NOAA if (IS_NOT_NOAA_CHANNEL(gTxVfo->CHANNEL_SAVE)) { @@ -184,7 +185,9 @@ static void processFKeyFunction(const KEY_Code_t Key, const bool beep) #elif defined(ENABLE_SPECTRUM) APP_RunSpectrum(); gRequestDisplayScreen = DISPLAY_MAIN; - #else + #endif + } + else { // toggle scanlist-1 and scanlist 2 if (gScreenToDisplay != DISPLAY_SCANNER) { @@ -206,7 +209,7 @@ static void processFKeyFunction(const KEY_Code_t Key, const bool beep) gVfoConfigureMode = VFO_CONFIGURE; gFlagResetVfos = true; } - #endif + } break; case KEY_6: