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

DTMF adjustments

This commit is contained in:
OneOfEleven
2023-09-18 00:48:40 +01:00
parent 66afde980a
commit 6cdd8f35b1
16 changed files with 278 additions and 111 deletions

View File

@ -432,10 +432,17 @@ void UI_DisplayMain(void)
if (gEeprom.VfoInfo[vfo_num].FrequencyReverse)
UI_PrintStringSmall("R", display_width + 62, 0, Line + 1);
// show the narrow band symbol
if (gEeprom.VfoInfo[vfo_num].CHANNEL_BANDWIDTH == BANDWIDTH_NARROW)
UI_PrintStringSmall("N", display_width + 70, 0, Line + 1);
{ // show the narrow band symbol
String[0] = '?';
switch (gEeprom.VfoInfo[vfo_num].CHANNEL_BANDWIDTH)
{
case BANDWIDTH_WIDE: String[0] = 'W'; break;
case BANDWIDTH_NARROW: String[0] = 'N'; break;
}
String[1] = '\0';
UI_PrintStringSmall(String, display_width + 70, 0, Line + 1);
}
// show the DTMF decoding symbol
if (gEeprom.VfoInfo[vfo_num].DTMF_DECODING_ENABLE || gSetting_KILLED)
UI_PrintStringSmall("DTMF", display_width + 78, 0, Line + 1);