Skip to content

Commit

Permalink
Implement get_fan_presence for Grapefruit
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeeter committed Sep 26, 2024
1 parent 894ede3 commit 53b91e7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion task/thermal/src/bsp/grapefruit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ impl Bsp {
}

pub fn get_fan_presence(&self) -> Result<Fans<{ NUM_FANS }>, SeqError> {
Ok(Fans::new())
let mut fans = Fans::new();
for i in 0..fans.len() {
fans[i] = Some(sensors::EMC2305_SPEED_SENSORS[i]);
}
Ok(fans)
}

pub fn new(i2c_task: TaskId) -> Self {
Expand Down

0 comments on commit 53b91e7

Please sign in to comment.