0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-05-19 08:21:18 +03:00

bat-cal menu input update

This commit is contained in:
OneOfEleven 2023-10-20 18:18:32 +01:00
parent 5f13884e88
commit e1dfb56335
3 changed files with 24 additions and 24 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1134,10 +1134,10 @@ void UI_DisplayMenu(void)
case MENU_BAT_CAL:
{
const uint16_t vol = (uint32_t)g_battery_voltage_average * g_battery_calibration[3] / g_sub_menu_selection;
if (!g_in_sub_menu || g_input_box_index == 0)
if (!g_in_sub_menu)
sprintf(String, "%u.%02uV\n%d", vol / 100, vol % 100, g_sub_menu_selection);
else
sprintf(String, "%u.%02uV\n%d\n%04d", vol / 100, vol % 100, g_battery_calibration[3], g_sub_menu_selection);
sprintf(String, "%u.%02uV\n(%#4d)\n%#4d", vol / 100, vol % 100, g_battery_calibration[3], g_sub_menu_selection);
break;
}
}