Update readme, slash configs

This commit is contained in:
Luke D. Jones
2025-01-12 17:36:10 +13:00
parent 2123f369ad
commit 128bc3fce1
113 changed files with 1545 additions and 1305 deletions

View File

@@ -36,7 +36,7 @@ pub struct CurveData {
pub fan: FanCurvePU,
pub pwm: [u8; 8],
pub temp: [u8; 8],
pub enabled: bool,
pub enabled: bool
}
impl From<&CurveData> for String {
@@ -99,9 +99,7 @@ impl std::str::FromStr for CurveData {
if select == 0 {
if temp_prev > r {
return Err(ProfileError::ParseFanCurvePrevHigher(
"temperature",
temp_prev,
r,
"temperature", temp_prev, r
));
}
temp_prev = r;
@@ -116,9 +114,7 @@ impl std::str::FromStr for CurveData {
}
if pwm_prev > p {
return Err(ProfileError::ParseFanCurvePrevHigher(
"percentage",
pwm_prev,
p,
"percentage", pwm_prev, p
));
}
pwm_prev = p;
@@ -130,7 +126,7 @@ impl std::str::FromStr for CurveData {
fan: FanCurvePU::CPU,
pwm,
temp,
enabled: false,
enabled: false
})
}
}