diff options
Diffstat (limited to 'watchdog.hpp')
-rw-r--r-- | watchdog.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/watchdog.hpp b/watchdog.hpp index 757029c..e829699 100644 --- a/watchdog.hpp +++ b/watchdog.hpp @@ -93,6 +93,12 @@ class Watchdog : public WatchdogInherits return timer.expired(); } + /** @brief Tells if the timer is running or not */ + inline bool timerEnabled() const + { + return timer.getEnabled() != SD_EVENT_OFF; + } + private: /** @brief sdbusplus handle */ sdbusplus::bus::bus& bus; |