1
0
mirror of https://github.com/CTCaer/hekate.git synced 2024-12-25 06:18:11 +00:00

nyx: reflect 5v regulator changes

This commit is contained in:
CTCaer 2021-06-08 05:51:52 +03:00
parent 9a21ff6976
commit 8058d550ab

View File

@ -1262,14 +1262,9 @@ static void _update_status_bar(void *params)
else else
strcat(label, "#FF3C28 "SYMBOL_BATTERY_EMPTY"#"); strcat(label, "#FF3C28 "SYMBOL_BATTERY_EMPTY"#");
// Set charging symbol and regulator 5V source based on USB state. // Set charging symbol.
if (charge_status) if (charge_status)
{
strcat(label, " #FFDD00 "SYMBOL_CHARGE"#"); strcat(label, " #FFDD00 "SYMBOL_CHARGE"#");
regulator_5v_batt_src_enable(false);
}
else
regulator_5v_batt_src_enable(true);
lv_label_set_text(status_bar.battery, label); lv_label_set_text(status_bar.battery, label);
lv_obj_realign(status_bar.battery); lv_obj_realign(status_bar.battery);