mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-07-29 10:18:12 -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}");
|
error!("Failed to get battery status: {e}");
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
Ok(status) => status.level < LOW_BATTERY_LEVEL,
|
Ok(status) => status.level <= LOW_BATTERY_LEVEL,
|
||||||
};
|
};
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
|
|||||||
Reference in New Issue
Block a user