diff options
Diffstat (limited to 'softoff/softoff.cpp')
-rw-r--r-- | softoff/softoff.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/softoff/softoff.cpp b/softoff/softoff.cpp index 921536f..803efc0 100644 --- a/softoff/softoff.cpp +++ b/softoff/softoff.cpp @@ -103,7 +103,7 @@ void SoftPowerOff::hostControlEvent(sdbusplus::message::message& msg) // Starts a timer int SoftPowerOff::startTimer(const std::chrono::microseconds& usec) { - return timer.startTimer(usec); + return timer.start(usec); } // Host Response handler @@ -115,7 +115,7 @@ auto SoftPowerOff::responseReceived(HostResponse response) -> HostResponse { // Disable the timer since Host has quiesced and we are // done with soft power off part - auto r = timer.setTimer(SD_EVENT_OFF); + auto r = timer.stop(); if (r < 0) { log<level::ERR>("Failure to STOP the timer", |