diff options
Diffstat (limited to 'monitor/fan.hpp')
-rw-r--r-- | monitor/fan.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/monitor/fan.hpp b/monitor/fan.hpp index 6cbd370..d79ae31 100644 --- a/monitor/fan.hpp +++ b/monitor/fan.hpp @@ -66,6 +66,18 @@ class Fan std::shared_ptr<sd_event>& events, const FanDefinition& def); + /** + * @brief Callback function for when an input sensor changes + * + * Starts a timer, where if it expires then the sensor + * was slow for too long and can be considered not functional. + */ + void tachChanged(TachSensor& sensor); + + /** + * @brief Calls tachChanged(sensor) on each sensor + */ + void tachChanged(); private: |