Improve logic to handle fans stopping

This commit is contained in:
2022-10-10 00:25:09 +02:00
parent 0f91960ef9
commit 596a30b76a
7 changed files with 30 additions and 12 deletions

View File

@@ -44,9 +44,7 @@ void FanCurve::DoFanControl() {
if (f->RPM() <= 0) {
BOOST_LOG_TRIVIAL(warning) << "Fan stopped completely!";
f->PWM(f->StartPWM());
BOOST_LOG_TRIVIAL(info) << "Adjusting minPWM of fan " << f->toString();
f->MinPWM(f->MinPWM() + 2);
f->AdjustPWMLimits();
} else {
f->PWM(targetFanPower);
}