From 3a726133a5d4b944e00740c7ef0e2990fb426042 Mon Sep 17 00:00:00 2001 From: Dual Tachyon Date: Sat, 16 Dec 2023 12:55:33 +0000 Subject: [PATCH] Fixed exit button behaviour. --- radio/detector.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/radio/detector.c b/radio/detector.c index e47ca2f8..f840d29c 100644 --- a/radio/detector.c +++ b/radio/detector.c @@ -305,6 +305,7 @@ static void DETECTOR_Loop(void) Task_CheckIncoming(); Task_CheckRSSI(); if (bCtdcScan && gSignalFound && gRadioMode != RADIO_MODE_QUIET && gDetectorTimer == 0) { + CtdcScan(); break; } if (Key == KEY_NONE) { @@ -326,13 +327,13 @@ static void DETECTOR_Loop(void) KEY_CurrentKey = KEY_NONE; RADIO_EndRX(); BEEP_Play(740, 2, 100); - continue; + break; } if (KEY_CurrentKey == KEY_HASH && !bCtdcScan) { KEY_CurrentKey = KEY_NONE; RADIO_EndRX(); UpdateBand(true); - continue; + break; } if (KEY_CurrentKey == KEY_STAR) { KEY_CurrentKey = KEY_NONE; @@ -344,7 +345,7 @@ static void DETECTOR_Loop(void) UpdateBand(false); bCtdcScan = false; } - continue; + break; } } KEY_KeyCounter = 0; @@ -352,7 +353,6 @@ static void DETECTOR_Loop(void) Key = KEY_CurrentKey; } } - CtdcScan(); } }