Fix CTCSS tone not correctly set when decreasing

pull/141/head
marco 2023-06-28 19:52:53 +02:00 zatwierdzone przez Silvano Seva
rodzic e5b3ea1bed
commit ec62bda31a
1 zmienionych plików z 9 dodań i 1 usunięć

Wyświetl plik

@ -872,7 +872,15 @@ static void _ui_fsm_menuMacro(kbd_msg_t msg, bool *sync_rtx)
case 1:
if(state.channel.mode == OPMODE_FM)
{
state.channel.fm.txTone--;
if(state.channel.fm.txTone == 0)
{
state.channel.fm.txTone = MAX_TONE_INDEX-1;
}
else
{
state.channel.fm.txTone--;
}
state.channel.fm.txTone %= MAX_TONE_INDEX;
state.channel.fm.rxTone = state.channel.fm.txTone;
*sync_rtx = true;