Skip to content

Commit

Permalink
nyx: reflect 5v regulator changes
Browse files Browse the repository at this point in the history
  • Loading branch information
CTCaer committed Jun 8, 2021
1 parent 9a21ff6 commit 8058d55
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions nyx/nyx_gui/frontend/gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -1262,14 +1262,9 @@ static void _update_status_bar(void *params)
else
strcat(label, "#FF3C28 "SYMBOL_BATTERY_EMPTY"#");

// Set charging symbol and regulator 5V source based on USB state.
// Set charging symbol.
if (charge_status)
{
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_obj_realign(status_bar.battery);
Expand Down

0 comments on commit 8058d55

Please sign in to comment.