Skip to content

Commit

Permalink
Addressing a comment left from previous pr #19390 (#19734)
Browse files Browse the repository at this point in the history
* chg: addressing a few comments left from previous pr #19390 #19392

* Update src/app/clusters/level-control/level-control.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* Update src/app/clusters/level-control/level-control.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

* Restyled by clang-format

Co-authored-by: Boris Zbarsky <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
3 people authored and pull[bot] committed Oct 2, 2023
1 parent 3d73634 commit 3e7e03a
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<void *>(static_cast<uintptr_t>(endpoint)));
}

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

static EmberAfLevelControlState * getState(EndpointId endpoint)
Expand Down

0 comments on commit 3e7e03a

Please sign in to comment.