diff --git a/rog-profiles/src/fan_curve_set.rs b/rog-profiles/src/fan_curve_set.rs index 3d6e97f2..830c3d4a 100644 --- a/rog-profiles/src/fan_curve_set.rs +++ b/rog-profiles/src/fan_curve_set.rs @@ -72,7 +72,7 @@ impl std::str::FromStr for CurveData { let mut p = r; if percentages { p *= 255 / 100; - if p > 100 { + if r > 100 { return Err(ProfileError::ParseFanCurvePercentOver100(r)); } }