diff options
Diffstat (limited to 'control/fan.hpp')
-rw-r--r-- | control/fan.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/control/fan.hpp b/control/fan.hpp index e23d44e..6975248 100644 --- a/control/fan.hpp +++ b/control/fan.hpp @@ -46,6 +46,16 @@ class Fan */ void setSpeed(uint64_t speed); + /** + * @brief Get the current fan target speed + * + * @return - The target speed of the fan + */ + inline auto getTargetSpeed() const + { + return _targetSpeed; + } + private: /** @@ -71,6 +81,11 @@ class Fan * Vector of hwmon sensors for the rotors */ std::vector<std::string> _sensors; + + /** + * Target speed for this fan + */ + uint64_t _targetSpeed; }; |