Various fixes

- Change unit path
- Rename method
- Make CurrentPWM method return its value in PWM instead of percent
This commit is contained in:
2023-10-08 13:50:33 +02:00
parent 0a6bab36be
commit e2509cea8b
5 changed files with 12 additions and 12 deletions

View File

@@ -53,7 +53,7 @@ bool HwmonFan::InhibitStopPeriodExpired() {
}
void HwmonFan::SetPower(int percent) {
mPWMControl->Power(percent);
mPWMControl->SetPower(percent);
mSetValue = percent;
}
@@ -129,7 +129,7 @@ void HwmonFan::AdjustPWMLimits() {
}
}
void HwmonFan::EnforceSetValue() { mPWMControl->Power(mSetValue); }
void HwmonFan::EnforceSetValue() { mPWMControl->SetPower(mSetValue); }
json HwmonFan::toJson() const {
json obj;