mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-01-22 09:23:19 +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;
|
||||
if percentages {
|
||||
p *= 255 / 100;
|
||||
if p > 100 {
|
||||
if r > 100 {
|
||||
return Err(ProfileError::ParseFanCurvePercentOver100(r));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user