Fixed battery widget opening missing file #1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "lucastarche/simple-awesome:develop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Some models of batteries (like mine, hence this PR), have no files named "energy_now" nor "energy_full", but do have "charge_now" and "charge_full".
It adds a check to see whether the file exists or not, and uses the appropiate files
It should work but as I have no way to check if it works with batteries with "energy_now"
Hi, thanks a lot for this pull request. Do you mind to instead of using the
cat
shell command, add and use this function? :You don't have to replace everything in this file, I think it'd just be a better practice to try and use the io library asap.
fileExists()
16772da504This should implement the changes, although do tell me if you need me to change something else.
Seems good, thanks so much for your contribution! <3