summaryrefslogtreecommitdiffstats
path: root/watchdog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'watchdog.cpp')
-rw-r--r--watchdog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/watchdog.cpp b/watchdog.cpp
index b5cae66..12631a6 100644
--- a/watchdog.cpp
+++ b/watchdog.cpp
@@ -50,7 +50,7 @@ uint64_t Watchdog::timeRemaining() const
uint64_t timeRemain = 0;
// timer may have already expired and disabled
- if (timer.getEnabled() != SD_EVENT_OFF)
+ if (timerEnabled())
{
// the one-shot timer does not expire yet
auto expiry = duration_cast<milliseconds>(
@@ -71,7 +71,7 @@ uint64_t Watchdog::timeRemaining() const
// Reset the timer to a new expiration value
uint64_t Watchdog::timeRemaining(uint64_t value)
{
- if (timer.getEnabled() == SD_EVENT_OFF)
+ if (!timerEnabled())
{
// We don't need to update the timer because it is off
return 0;
OpenPOWER on IntegriCloud