Fix squelch control on md3x0

Knob now generates dedicated KNOB_LEFT and KNOB_RIGHT messages,
fixed ui to consider those for enabling the squelch change.
This commit is contained in:
Niccolò Izzo 2021-07-10 06:57:09 +02:00
parent c48405659b
commit 3bdaae0805
1 changed files with 1 additions and 1 deletions

View File

@ -639,7 +639,7 @@ void _ui_fsm_menuMacro(kbd_msg_t msg, bool *sync_rtx) {
}
#ifdef HAS_ABSOLUTE_KNOB // If the radio has an absolute position knob
if(msg.keys & KEY_LEFT || msg.keys & KEY_RIGHT) {
if(msg.keys & KNOB_LEFT || msg.keys & KNOB_RIGHT) {
state.sqlLevel = platform_getChSelector() - 1;
*sync_rtx = true;
}