-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add local and config #123
Add local and config #123
Conversation
@@ -73,13 +71,11 @@ pub fn read_battery_charge() -> Result<i8, Error> { | |||
let battery_charge_path: Vec<&str> = vec![ | |||
"/sys/class/power_supply/BAT/capacity", | |||
"/sys/class/power_supply/BAT0/capacity", | |||
"/sys/class/power_supply/BAT1/capacity" | |||
"/sys/class/power_supply/BAT1/capacity", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe add a BAT2 as well just in case? ( i do have a BAT2 in my system but its empty so idk what happened there)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea
Panicked |
Oh yea, thanks for catching that, i forgot to make something to check if the file exists. It check directory, just not file. I'll add that, thanks! |
@Camerooooon I think I fixed it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
fixes #83
TODO