Skip to content

Commit

Permalink
Remove LevelControlFeature from the allow list of defines (#25369)
Browse files Browse the repository at this point in the history
* Remove LevelControlFeature from the allow list of defines

* Update generated code
  • Loading branch information
vivien-apple authored Mar 1, 2023
1 parent ec6e34b commit edbaebe
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
4 changes: 1 addition & 3 deletions src/app/clusters/level-control/level-control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1223,9 +1223,7 @@ void emberAfLevelControlClusterServerInitCallback(EndpointId endpoint)
Attributes::MinLevel::Get(endpoint, &state->minLevel);
Attributes::MaxLevel::Get(endpoint, &state->maxLevel);

uint32_t featureMap;
if (Attributes::FeatureMap::Get(endpoint, &featureMap) == EMBER_ZCL_STATUS_SUCCESS &&
READBITS(featureMap, EMBER_AF_LEVEL_CONTROL_FEATURE_LIGHTING))
if (LevelControlHasFeature(endpoint, LevelControlFeature::kLighting))
{
if (state->minLevel < LEVEL_CONTROL_LIGHTING_MIN_LEVEL)
{
Expand Down
1 change: 0 additions & 1 deletion src/app/common/templates/config-data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ DefineBitmaps:
- BarrierControlCapabilities
- BarrierControlSafetyStatus
- ColorLoopUpdateFlags
- LevelControlFeature

# We need a more configurable way of deciding which clusters have which init functions....
# See https://github.com/project-chip/connectedhomeip/issues/4369
Expand Down
6 changes: 0 additions & 6 deletions zzz_generated/app-common/app-common/zap-generated/enums.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit edbaebe

Please sign in to comment.