mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
fix battery charging status on linux
This commit is contained in:
parent
b3c477902c
commit
2b25704d63
@ -791,6 +791,11 @@ static void check_proc_acpi_sysfs_battery(const char *node,
|
|||||||
|
|
||||||
if (strstr((char*)buf, "Discharging"))
|
if (strstr((char*)buf, "Discharging"))
|
||||||
*have_battery = true;
|
*have_battery = true;
|
||||||
|
else if (strstr((char*)buf, "Charging"))
|
||||||
|
{
|
||||||
|
*have_battery = true;
|
||||||
|
*charging = true;
|
||||||
|
}
|
||||||
else if (strstr((char*)buf, "Full"))
|
else if (strstr((char*)buf, "Full"))
|
||||||
*have_battery = true;
|
*have_battery = true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user