Remove the use of bytes in zbus signatures

This commit is contained in:
Luke D. Jones
2024-02-23 21:50:53 +13:00
parent 7613eded95
commit 96f281d789
11 changed files with 23 additions and 22 deletions

View File

@@ -222,10 +222,7 @@ impl CtrlFanCurveZbus {
/// Each platform_profile has a different default and the defualt can be
/// read only for the currently active profile.
async fn reset_profile_curves(&self, profile: ThrottlePolicy) -> zbus::fdo::Result<()> {
let active = self
.platform
.get_throttle_thermal_policy()
.unwrap_or(ThrottlePolicy::Balanced.into());
let active = self.platform.get_throttle_thermal_policy()?;
self.platform.set_throttle_thermal_policy(profile.into())?;
self.fan_curves
@@ -281,7 +278,6 @@ impl CtrlTask for CtrlFanCurveZbus {
}
}
}
dbg!("STREAM ENDED");
}
});