fix battery charging status on linux

This commit is contained in:
Brad Parker 2017-01-03 15:40:01 -05:00
parent b3c477902c
commit 2b25704d63

View File

@ -791,6 +791,11 @@ static void check_proc_acpi_sysfs_battery(const char *node,
if (strstr((char*)buf, "Discharging"))
*have_battery = true;
else if (strstr((char*)buf, "Charging"))
{
*have_battery = true;
*charging = true;
}
else if (strstr((char*)buf, "Full"))
*have_battery = true;