Skip to content

Commit f3c34ce

Browse files
simonftcooperq
authored andcommitted
Fix issue where low battery alert is fired on reboot when batter is 10%
1 parent 1b5575e commit f3c34ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

daemon/src/battery/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pub fn run_battery_notification_worker(
7171
error!("Failed to get battery status: {e}");
7272
true
7373
}
74-
Ok(status) => status.level < LOW_BATTERY_LEVEL,
74+
Ok(status) => status.level <= LOW_BATTERY_LEVEL,
7575
};
7676

7777
loop {

0 commit comments

Comments
 (0)