Small fixes and changes
- Allow printing of more log on HOS boot when LOGS are OFF. - A small name refactoring - Add battery warning symbol when battery < 3200mV
This commit is contained in:
@@ -830,7 +830,7 @@ static void _update_status_bar(void *params)
|
||||
|
||||
bool voltage_empty = batt_volt < 3200;
|
||||
s_printf(label + strlen(label), " mA# (%s%d mV%s)",
|
||||
voltage_empty ? "#FF8000" : "", batt_volt, voltage_empty ? "#" : "");
|
||||
voltage_empty ? "#FF8000 " : "", batt_volt, voltage_empty ? " "SYMBOL_WARNING"#" : "");
|
||||
|
||||
lv_label_set_array_text(status_bar.battery_more, label, 64);
|
||||
lv_obj_realign(status_bar.battery_more);
|
||||
|
||||
Reference in New Issue
Block a user