Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Commit

Permalink
Fixed exit button behaviour.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dual Tachyon authored and Dual Tachyon committed Dec 16, 2023
1 parent e51115b commit 3a72613
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions radio/detector.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
Expand All @@ -344,15 +345,14 @@ static void DETECTOR_Loop(void)
UpdateBand(false);
bCtdcScan = false;
}
continue;
break;
}
}
KEY_KeyCounter = 0;
KEY_CurrentKey = KEY_NONE;
Key = KEY_CurrentKey;
}
}
CtdcScan();
}
}

Expand Down

0 comments on commit 3a72613

Please sign in to comment.