fix for #176 - fancurve percentage check not handled correctly

This commit is contained in:
Armas Spann
2022-04-05 23:33:43 +02:00
parent fc14455da4
commit 99dd6ce77f

View File

@@ -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));
}
}