diff --git a/src/app/util/af-event.cpp b/src/app/util/af-event.cpp index 5978038d111754..966f1bbee63285 100644 --- a/src/app/util/af-event.cpp +++ b/src/app/util/af-event.cpp @@ -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);