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

Fix DTMF decoder whoopsy

This commit is contained in:
OneOfEleven
2023-09-18 20:37:42 +01:00
parent 630a17a7ed
commit 787a705b45
9 changed files with 75 additions and 23 deletions

View File

@ -455,7 +455,7 @@ void UI_DisplayMain(void)
if (center_line_is_free)
{
if (gDTMF_ReceivedSaved[0] >= 32)
{ // show the on-screen live DTMF decode
{ // show live DTMF decode
UI_PrintStringSmall(gDTMF_ReceivedSaved, 8, 0, 3);
}
else
@ -467,7 +467,7 @@ void UI_DisplayMain(void)
{ // charging .. show the battery state
#ifdef ENABLE_SHOW_CHARGE_LEVEL
const uint16_t volts = (gBatteryVoltageAverage < gMin_bat_v) ? gMin_bat_v :
(gBatteryVoltageAverage > gMax_bat_v) ? gMax_bat_v :
(gBatteryVoltageAverage > gMax_bat_v) ? gMax_bat_v :
gBatteryVoltageAverage;
sprintf(String, "Charge %u.%02uV %u%%",

View File

@ -54,11 +54,11 @@ void UI_DisplayStatus(const bool test_display)
line += 12;
#endif
if (gSetting_KILLED)
memset(line, 0xFF, 10);
else
#ifdef ENABLE_FMRADIO
// FM indicator
if (gSetting_KILLED)
memset(line, 0xFF, 10);
else
if (gFmRadioMode || test_display)
memmove(line, BITMAP_FM, sizeof(BITMAP_FM));
else