Skip to content

Commit 2286501

Browse files
sweetymhaiskepull[bot]
authored andcommitted
Fix for System Layer event handler crash (#6568)
1 parent 392e53d commit 2286501

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/app/util/af-event.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,7 @@ static EmberAfEventContext * findEventContext(EndpointId endpoint, ClusterId clu
144144

145145
EmberStatus emberEventControlSetDelayMS(EmberEventControl * control, uint32_t delayMs)
146146
{
147-
if (delayMs == 0)
148-
{
149-
emberEventControlSetActive(control);
150-
}
151-
else if (delayMs <= EMBER_MAX_EVENT_CONTROL_DELAY_MS)
147+
if (delayMs <= EMBER_MAX_EVENT_CONTROL_DELAY_MS)
152148
{
153149
control->status = EMBER_EVENT_MS_TIME;
154150
chip::DeviceLayer::SystemLayer.StartTimer(delayMs, EventControlHandler, control);

0 commit comments

Comments
 (0)