mirror of
https://github.com/CTCaer/hekate.git
synced 2024-11-10 12:31:51 +00:00
nyx: reflect 5v regulator changes
This commit is contained in:
parent
9a21ff6976
commit
8058d550ab
1 changed files with 1 additions and 6 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue