From 6d77b4a58dcb1fd3732a9b9e789cbe40b5f0a6b6 Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Wed, 3 Jul 2024 00:12:08 +0200 Subject: [PATCH] Update SysInf --- ui/menu.c | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/ui/menu.c b/ui/menu.c index 532d223..f2340aa 100644 --- a/ui/menu.c +++ b/ui/menu.c @@ -885,12 +885,10 @@ void UI_DisplayMenu(void) case MENU_VOL: #ifdef ENABLE_FEAT_F4HWN - sprintf(String, "%u.%02uV %u%%\n%s\n%s", - gBatteryVoltageAverage / 100, gBatteryVoltageAverage % 100, - BATTERY_VoltsToPercent(gBatteryVoltageAverage), + sprintf(String, "%s\n%s", AUTHOR_STRING_2, VERSION_STRING_2 - ); + ); #else sprintf(String, "%u.%02uV\n%u%%", gBatteryVoltageAverage / 100, gBatteryVoltageAverage % 100, @@ -1014,6 +1012,27 @@ void UI_DisplayMenu(void) else y = 2 - ((lines + 0) / 2); + // only for SysInf + if(UI_MENU_GetCurrentMenuId() == MENU_VOL) + { + sprintf(edit, "%u.%02uV %u%%", + gBatteryVoltageAverage / 100, gBatteryVoltageAverage % 100, + BATTERY_VoltsToPercent(gBatteryVoltageAverage) + ); + + UI_PrintStringSmallNormal(edit, 54, 127, 1); + + #ifdef ENABLE_SPECTRUM + #ifndef ENABLE_FMRADIO + UI_PrintStringSmallNormal("Bandscope", 54, 127, 6); + #endif + #else + UI_PrintStringSmallNormal("Broadcast", 54, 127, 6); + #endif + + y = 2; + } + // draw the text lines for (i = 0; i < len && lines > 0; lines--) {