Use function to check if in RX mode

This commit is contained in:
Juan Antonio
2023-12-08 01:43:12 +01:00
parent c3906f42f8
commit 2164461449
7 changed files with 23 additions and 45 deletions

No files matched your search

+1 -3
View File
@@ -102,9 +102,7 @@ void ACTION_Scan(bool bRestart)
#ifdef ENABLE_FMRADIO
if (gFmRadioMode)
{
if (gCurrentFunction != FUNCTION_RECEIVE &&
gCurrentFunction != FUNCTION_MONITOR &&
gCurrentFunction != FUNCTION_TRANSMIT)
if (FUNCTION_IsRx())
{
GUI_SelectNextDisplay(DISPLAY_FM);