Update SysInf
This commit is contained in:
27
ui/menu.c
27
ui/menu.c
@@ -885,12 +885,10 @@ 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
|
||||||
);
|
);
|
||||||
#else
|
#else
|
||||||
sprintf(String, "%u.%02uV\n%u%%",
|
sprintf(String, "%u.%02uV\n%u%%",
|
||||||
gBatteryVoltageAverage / 100, gBatteryVoltageAverage % 100,
|
gBatteryVoltageAverage / 100, gBatteryVoltageAverage % 100,
|
||||||
@@ -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--)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user