Skip to content

Commit

Permalink
fix keyactions with ENABLE_FM_RADIO = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
jcalado authored and reppad committed Mar 8, 2024
1 parent 37f9b1e commit 8564140
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion task/keyaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,11 @@ void KeypressAction(uint8_t Action) {
break;

case ACTION_FREQUENCY_DETECT:
if (!gSettings.bFLock && gFM_Mode == FM_MODE_OFF) {
if (!gSettings.bFLock
#ifdef ENABLE_FM_RADIO
&& gFM_Mode == FM_MODE_OFF
#endif
) {
gInputBoxWriteIndex = 0;
KEY_LongPressed = false;
RADIO_FrequencyDetect();
Expand Down

0 comments on commit 8564140

Please sign in to comment.