mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
fix for #176 - fancurve percentage check not handled correctly
This commit is contained in:
@@ -72,7 +72,7 @@ impl std::str::FromStr for CurveData {
|
|||||||
let mut p = r;
|
let mut p = r;
|
||||||
if percentages {
|
if percentages {
|
||||||
p *= 255 / 100;
|
p *= 255 / 100;
|
||||||
if p > 100 {
|
if r > 100 {
|
||||||
return Err(ProfileError::ParseFanCurvePercentOver100(r));
|
return Err(ProfileError::ParseFanCurvePercentOver100(r));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user