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

@@ -1,9 +1,11 @@
#ifndef HWMONFAN_H_
#define HWMONFAN_H_
#include <boost/json/object.hpp>
#include <chrono>
#include <memory>
#include <boost/json/object.hpp>
#include <fan/Fan.h>
#include <pwm/PWMControl.h>
#include <sensor/Sensor.h>
@@ -25,6 +27,7 @@ public:
int StartPWM() override;
void FindPWMLimits() override;
void AdjustPWMLimits() override;
json toJson() const override;
@@ -37,6 +40,7 @@ private:
int mMinPWM;
int mStartPWM;
std::chrono::time_point<std::chrono::steady_clock> mLastAdjustmentTime;
};
#endif // HWMONFAN_H_