mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +00:00
Add match on "battery" instead of just "BAT" to appease some unices
- required for odroid go advance
This commit is contained in:
parent
8d6c7d6753
commit
2dbb13d8dd
@ -1094,7 +1094,7 @@ static bool frontend_unix_powerstate_check_acpi_sysfs(
|
||||
#ifdef HAVE_LAKKA_SWITCH
|
||||
if (node && strstr(node, "max170xx_battery"))
|
||||
#else
|
||||
if (node && strstr(node, "BAT"))
|
||||
if (node && (strstr(node, "BAT") || strstr(node, "battery")))
|
||||
#endif
|
||||
check_proc_acpi_sysfs_battery(node,
|
||||
&have_battery, &charging, seconds, percent);
|
||||
|
Loading…
x
Reference in New Issue
Block a user