Skip to content

Commit

Permalink
optimsed ifdef in on-on handler
Browse files Browse the repository at this point in the history
  • Loading branch information
lpbeliveau-silabs committed Aug 23, 2023
1 parent 4b87d42 commit 74ca620
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/clusters/on-off-server/on-off-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,12 +292,10 @@ class DefaultOnOffSceneHandler : public scenes::DefaultSceneHandlerImpl
#ifdef EMBER_AF_PLUGIN_LEVEL_CONTROL
if (!(LevelControlWithOnOffFeaturePresent(endpoint) &&
Scenes::ScenesServer::Instance().IsHandlerRegistered(endpoint, LevelControlServer::GetSceneHandler())))
#endif
{
OnOffServer::Instance().scheduleTimerCallbackMs(sceneEventControl(endpoint), timeMs);
}
#else
OnOffServer::Instance().scheduleTimerCallbackMs(sceneEventControl(endpoint), timeMs);
#endif

return CHIP_NO_ERROR;
}
Expand Down

0 comments on commit 74ca620

Please sign in to comment.