procfetch
procfetch copied to clipboard
Issue #127 fixed!
The issue #127 is hereby fixed as can be seen in the attached screenshot.
It is also made dynamic for the folder in /sys/class/power_supply
. The code basically checks for any folder inside this one that starts with 'BA'. The required files of status
and capacity
are generally located in BAT0 or BAT1 folder here. The other case maybe of BAPM.
Thus the battery folder will always begin with 'BA' substring. The other folder will be for the adapter which doesn't start with 'BA' at all!
Hope this helps.
Revert back if any changes are required.
Thank you :)