Update SysInf

This commit is contained in:
Armel FAUVEAU
2024-07-03 00:12:08 +02:00
parent cb88330110
commit 6d77b4a58d

View File

@@ -885,9 +885,7 @@ void UI_DisplayMenu(void)
case MENU_VOL: case MENU_VOL:
#ifdef ENABLE_FEAT_F4HWN #ifdef ENABLE_FEAT_F4HWN
sprintf(String, "%u.%02uV %u%%\n%s\n%s", sprintf(String, "%s\n%s",
gBatteryVoltageAverage / 100, gBatteryVoltageAverage % 100,
BATTERY_VoltsToPercent(gBatteryVoltageAverage),
AUTHOR_STRING_2, AUTHOR_STRING_2,
VERSION_STRING_2 VERSION_STRING_2
); );
@@ -1014,6 +1012,27 @@ void UI_DisplayMenu(void)
else else
y = 2 - ((lines + 0) / 2); 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 // draw the text lines
for (i = 0; i < len && lines > 0; lines--) for (i = 0; i < len && lines > 0; lines--)
{ {