Skip to content

Commit

Permalink
Fix for System Layer event handler crash (#6568)
Browse files Browse the repository at this point in the history
  • Loading branch information
sweetymhaiske authored and pull[bot] committed Jul 2, 2021
1 parent fbee997 commit 5293401
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/app/util/af-event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,7 @@ static EmberAfEventContext * findEventContext(EndpointId endpoint, ClusterId clu

EmberStatus emberEventControlSetDelayMS(EmberEventControl * control, uint32_t delayMs)
{
if (delayMs == 0)
{
emberEventControlSetActive(control);
}
else if (delayMs <= EMBER_MAX_EVENT_CONTROL_DELAY_MS)
if (delayMs <= EMBER_MAX_EVENT_CONTROL_DELAY_MS)
{
control->status = EMBER_EVENT_MS_TIME;
chip::DeviceLayer::SystemLayer.StartTimer(delayMs, EventControlHandler, control);
Expand Down

0 comments on commit 5293401

Please sign in to comment.