Skip to content

Commit

Permalink
Merge pull request #20 from xaverdh/refresh-fan-speed
Browse files Browse the repository at this point in the history
refresh fan_speed after suspend
  • Loading branch information
AaronErhardt authored Jun 8, 2023
2 parents 21db8da + 1ebf971 commit 30209f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tailord/src/fancontrol/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ impl FanRuntimeData {

tokio::select! {
_ = tokio::time::sleep(delay) => {},
_ = process_suspend(&mut self.suspend_receiver) => {}
_ = process_suspend(&mut self.suspend_receiver) => {
self.fan_speed = self.io.get_fan_speed_percent(0).unwrap();
}
}
}
}
Expand Down

0 comments on commit 30209f9

Please sign in to comment.