Fix ENABLE_NAVIG_LEFT_RIGHT for Bandscope

This commit is contained in:
Armel FAUVEAU committed 2025-10-31 19:46:10 +01:00
1 parent fbe1665400
commit cd78112d62
1 file changed
+33 -8
+33 -8
View File
@@ -1151,13 +1151,21 @@ static void OnKeyDown(uint8_t key)
#ifdef ENABLE_SCAN_RANGES
if (!gScanRangeStart)
#endif
#ifdef ENABLE_NAVIG_LEFT_RIGHT
UpdateCurrentFreq(false);
#else
UpdateCurrentFreq(true);
#endif
break;
case KEY_DOWN:
#ifdef ENABLE_SCAN_RANGES
if (!gScanRangeStart)
#endif
#ifdef ENABLE_NAVIG_LEFT_RIGHT
UpdateCurrentFreq(true);
#else
UpdateCurrentFreq(false);
#endif
break;
case KEY_SIDE1:
Blacklist();
@@ -1274,19 +1282,36 @@ void OnKeyDownStill(KEY_Code_t key)
break;
case KEY_UP:
if (menuState)
{
SetRegMenuValue(menuState, true);
break;
}
UpdateCurrentFreqStill(true);
break;
case KEY_DOWN:
if (menuState)
#ifdef ENABLE_NAVIG_LEFT_RIGHT
{
SetRegMenuValue(menuState, false);
break;
}
UpdateCurrentFreqStill(false);
#else
{
SetRegMenuValue(menuState, true);
break;
}
UpdateCurrentFreqStill(true);
#endif
break;
case KEY_DOWN:
if (menuState)
#ifdef ENABLE_NAVIG_LEFT_RIGHT
{
SetRegMenuValue(menuState, true);
break;
}
UpdateCurrentFreqStill(true);
#else
{
SetRegMenuValue(menuState, false);
break;
}
UpdateCurrentFreqStill(false);
#endif
break;
case KEY_STAR:
UpdateRssiTriggerLevel(true);