0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-19 22:58:04 +03:00

ctcss phase stuff + fast manual freq up/dn scanning update

This commit is contained in:
OneOfEleven
2023-10-31 22:02:54 +00:00
parent 2522b4184a
commit 010ee10516
20 changed files with 532 additions and 552 deletions

View File

@ -177,13 +177,13 @@ int MENU_GetLimits(uint8_t Cursor, int32_t *pMin, int32_t *pMax)
case MENU_TX_CDCSS:
*pMin = 0;
*pMax = 208;
//*pMax = (ARRAY_SIZE(DCS_OPTIONS) * 2);
//*pMax = (ARRAY_SIZE(DCS_CODE_LIST) * 2);
break;
case MENU_RX_CTCSS:
case MENU_TX_CTCSS:
*pMin = 0;
*pMax = ARRAY_SIZE(CTCSS_OPTIONS) - 1;
*pMax = ARRAY_SIZE(CTCSS_TONE_LIST) - 1;
break;
case MENU_BANDWIDTH:
@ -477,7 +477,7 @@ void MENU_AcceptSetting(void)
pConfig->code = Code;
pConfig->code_type = CODE_TYPE_NONE;
BK4819_ExitSubAu();
BK4819_disable_sub_audible();
}
else
{
@ -485,7 +485,7 @@ void MENU_AcceptSetting(void)
Code = g_sub_menu_selection - 1;
pConfig->code = Code;
BK4819_SetCTCSSFrequency(CTCSS_OPTIONS[Code]);
BK4819_set_CTCSS_freq(CTCSS_TONE_LIST[Code]);
}
g_request_save_channel = 1;
@ -910,10 +910,10 @@ void MENU_SelectNextCode(void)
if (g_menu_cursor == MENU_RX_CDCSS)
UpperLimit = 208;
//UpperLimit = ARRAY_SIZE(DCS_OPTIONS);
//UpperLimit = ARRAY_SIZE(DCS_CODE_LIST);
else
if (g_menu_cursor == MENU_RX_CTCSS)
UpperLimit = ARRAY_SIZE(CTCSS_OPTIONS) - 1;
UpperLimit = ARRAY_SIZE(CTCSS_TONE_LIST) - 1;
else
return;