Implement fan curves and extend serialization logic

This commit is contained in:
2022-09-30 20:58:33 +02:00
parent 981d808004
commit a23563c0be
6 changed files with 56 additions and 19 deletions

View File

@@ -14,6 +14,10 @@ struct FanStep {
class FanCurve {
public:
FanCurve(std::vector<FanStep> steps,
std::vector<std::shared_ptr<Sensor>> sensors,
std::vector<std::shared_ptr<Fan>> fans);
void DoFanControl();
private:
@@ -21,7 +25,7 @@ private:
std::vector<FanStep> mSteps;
std::vector<std::shared_ptr<Sensor>> mTempSensors;
std::vector<std::shared_ptr<HwmonFan>> mFans;
std::vector<std::shared_ptr<Fan>> mFans;
};
#endif // FANCURVE_H_