Skip to content

Commit

Permalink
chg: addressing a few comments left from previous pr #19390 #19392
Browse files Browse the repository at this point in the history
  • Loading branch information
rochaferraz committed Jun 17, 2022
1 parent 147cab2 commit da771b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/clusters/level-control/level-control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ static void timerCallback(System::Layer *, void * callbackContext)
static void schedule(EndpointId endpoint, uint32_t delayMs)
{
DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Milliseconds32(delayMs), timerCallback,
reinterpret_cast<void *>(endpoint));
reinterpret_cast<uintptr_t>(endpoint));
}

static void deactivate(EndpointId endpoint)
{
DeviceLayer::SystemLayer().CancelTimer(timerCallback, reinterpret_cast<void *>(endpoint));
DeviceLayer::SystemLayer().CancelTimer(timerCallback, reinterpret_cast<uintptr_t>(endpoint));
}

static EmberAfLevelControlState * getState(EndpointId endpoint)
Expand Down

0 comments on commit da771b1

Please sign in to comment.