Skip to content
Snippets Groups Projects
Commit fc0d5469 authored by Martin Mareš's avatar Martin Mareš
Browse files

osd-batt: Bugfix to previous commit

parent 3ea5c97c
No related branches found
No related tags found
No related merge requests found
......@@ -94,7 +94,8 @@ static void parse_batt(char *batt_name)
if (!sys_read_int("present", 1))
return;
int charging = sys_read_int("charging", 0);
char status[BUFSIZE];
int charging = sys_read(status, "status") && !strcmp(status, "Charging");
int charge_full = sys_read_int("charge_full", 0);
int charge_now = sys_read_int("charge_now", 0);
int current_now = sys_read_int("current_now", 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment