Added path to ps5 contoller to game controller battery script.

This commit is contained in:
Storm Dragon 2024-09-17 18:08:36 -04:00
parent f2ab61b389
commit 3769428fdf

View File

@ -19,7 +19,7 @@
batteryName="" batteryName=""
if [[ "$batteryName" == "" ]]; then if [[ "$batteryName" == "" ]]; then
batteryName="$(find /sys/class/power_supply -name 'sony_controller_battery_*' | cut -d/ -f5)" batteryName="$(find /sys/class/power_supply -name 'sony_controller_battery_*' -or -name 'ps-controller-battery-*' | cut -d/ -f5)"
fi fi
# If there's no file, we don't check it. # If there's no file, we don't check it.