Skip to content

Commit

Permalink
Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-menzopol committed Oct 7, 2022
1 parent 1449f02 commit 98f8918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/clusters/level-control/level-control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ static uint32_t computeCallbackWaitTimeMs(CallbackScheduleState & callbackSchedu
const auto currentTime = System::SystemClock().GetMonotonicTimestamp();

// Subsequent call
if (callbackSchedule.runTime)
if (callbackSchedule.runTime.count())
{
// Check whether the previous scheduled callback was late and whether its running time
// is smaller than the desired delay
Expand Down

0 comments on commit 98f8918

Please sign in to comment.