From 1879f3a507c9f1ecf8a5320c904722a19513c888 Mon Sep 17 00:00:00 2001 From: Krzysiek Egzmont Date: Sat, 30 Sep 2023 15:08:26 +0200 Subject: [PATCH] Charging message fixed --- Makefile | 2 +- ui/main.c | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 8357e4e..f12e011 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ ENABLE_CTCSS_TAIL_PHASE_SHIFT := 1 ENABLE_MAIN_KEY_HOLD := 1 ENABLE_BOOT_BEEPS := 0 ENABLE_COMPANDER := 1 -ENABLE_SHOW_CHARGE_LEVEL := 0 +ENABLE_SHOW_CHARGE_LEVEL := 1 ENABLE_REVERSE_BAT_SYMBOL := 1 ENABLE_NO_SCAN_TIMEOUT := 1 ENABLE_AM_FIX := 1 diff --git a/ui/main.c b/ui/main.c index b0ef615..6b41e2c 100644 --- a/ui/main.c +++ b/ui/main.c @@ -703,13 +703,10 @@ void UI_DisplayMain(void) #endif #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 #endif @@ -720,7 +717,7 @@ void UI_DisplayMain(void) else #endif - if (rx || gCurrentFunction == FUNCTION_FOREGROUND) + if (rx || gCurrentFunction == FUNCTION_FOREGROUND || gCurrentFunction == FUNCTION_POWER_SAVE) { if (gSetting_live_DTMF_decoder && gDTMF_RX_live[0] >= 32) { // show live DTMF decode