0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-05-01 15:51:25 +03:00

On-screen charge level bug fixed

This commit is contained in:
OneOfEleven 2023-10-02 01:28:56 +01:00
parent bbf8a7061e
commit 58eced120e
3 changed files with 5 additions and 8 deletions

Binary file not shown.

Binary file not shown.

View File

@ -709,13 +709,10 @@ void UI_DisplayMain(void)
#endif #endif
#if defined(ENABLE_AM_FIX) && defined(ENABLE_AM_FIX_SHOW_DATA) #if defined(ENABLE_AM_FIX) && defined(ENABLE_AM_FIX_SHOW_DATA)
if (gEeprom.VfoInfo[gEeprom.RX_CHANNEL].AM_mode && gSetting_AM_fix) if (rx && gEeprom.VfoInfo[gEeprom.RX_CHANNEL].AM_mode && gSetting_AM_fix)
{ {
if (rx) AM_fix_print_data(gEeprom.RX_CHANNEL, String);
{ UI_PrintStringSmall(String, 2, 0, 3);
AM_fix_print_data(gEeprom.RX_CHANNEL, String);
UI_PrintStringSmall(String, 2, 0, 3);
}
} }
else else
#endif #endif
@ -725,8 +722,8 @@ void UI_DisplayMain(void)
UI_DisplayRSSIBar(gCurrentRSSI[gEeprom.RX_CHANNEL], false); UI_DisplayRSSIBar(gCurrentRSSI[gEeprom.RX_CHANNEL], false);
else else
#endif #endif
if (rx || gCurrentFunction == FUNCTION_FOREGROUND) if (rx || gCurrentFunction == FUNCTION_FOREGROUND || gCurrentFunction == FUNCTION_POWER_SAVE)
{ {
#if 1 #if 1
if (gSetting_live_DTMF_decoder && gDTMF_RX_live[0] != 0) if (gSetting_live_DTMF_decoder && gDTMF_RX_live[0] != 0)