Small correction

This commit is contained in:
Luke D. Jones
2024-03-13 21:24:05 +13:00
parent 2e2d5cb46b
commit 9faebe9e38
2 changed files with 14 additions and 14 deletions

View File

@@ -73,11 +73,11 @@ impl CtrlFanCurveZbus {
ThrottlePolicy::Performance,
ThrottlePolicy::Quiet,
] {
let mut dev = find_fan_curve_node()?;
// For each profile we need to switch to it before we
// can read the existing values from hardware. The ACPI method used
// for this is what limits us.
platform.set_throttle_thermal_policy(this.into())?;
let mut dev = find_fan_curve_node()?;
fan_curves.set_active_curve_to_defaults(this, &mut dev)?;
info!("{MOD_NAME}: {this:?}:");