Battery calibration function added
This commit is contained in:
@@ -663,6 +663,7 @@ void UI_DisplayMenu(void)
|
||||
break;
|
||||
|
||||
case MENU_VOL:
|
||||
|
||||
// 1st text line
|
||||
sprintf(String, "%u.%02uV", gBatteryVoltageAverage / 100, gBatteryVoltageAverage % 100);
|
||||
UI_PrintString(String, menu_item_x1, menu_item_x2, 1, 8);
|
||||
@@ -677,6 +678,12 @@ void UI_DisplayMenu(void)
|
||||
UI_PrintString(String, menu_item_x1, menu_item_x2, 5, 8);
|
||||
#endif
|
||||
}
|
||||
|
||||
if(gF_LOCK){
|
||||
gBatteryCalibration[3] = gSubMenuSelection;
|
||||
sprintf(String, "%u", gSubMenuSelection);
|
||||
UI_PrintString(String, menu_item_x1, menu_item_x2, 5, 8);
|
||||
}
|
||||
|
||||
already_printed = true;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user