mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-27 16:09:58 -07:00
Fix issue where low battery alert is fired on reboot when batter is 10%
This commit is contained in:
committed by
Cooper Quintin
parent
1b5575e5a6
commit
f3c34ce0d3
@@ -71,7 +71,7 @@ pub fn run_battery_notification_worker(
|
||||
error!("Failed to get battery status: {e}");
|
||||
true
|
||||
}
|
||||
Ok(status) => status.level < LOW_BATTERY_LEVEL,
|
||||
Ok(status) => status.level <= LOW_BATTERY_LEVEL,
|
||||
};
|
||||
|
||||
loop {
|
||||
|
||||
Reference in New Issue
Block a user