Skip to content

Commit

Permalink
Update src/app/clusters/level-control/level-control.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Boris Zbarsky <[email protected]>
  • Loading branch information
rochaferraz and bzbarsky-apple authored Jun 17, 2022
1 parent b5a3932 commit 4e8a0ea
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 @@ -146,7 +146,7 @@ static void schedule(EndpointId endpoint, uint32_t delayMs)

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

static EmberAfLevelControlState * getState(EndpointId endpoint)
Expand Down

0 comments on commit 4e8a0ea

Please sign in to comment.