We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a489741 commit 0e1f0b4Copy full SHA for 0e1f0b4
src/app/clusters/level-control/level-control.cpp
@@ -242,6 +242,12 @@ class DefaultLevelControlSceneHandler : public scenes::DefaultSceneHandlerImpl
242
// TODO : Implement action on frequency when frequency not provisional anymore
243
// if(LevelControlHasFeature(endpoint, LevelControl::Feature::kFrequency)){}
244
245
+ EmberAfLevelControlState * state = getState(endpoint);
246
+ if (level < state->minLevel || level > state->maxLevel)
247
+ {
248
+ chip::app::NumericAttributeTraits<uint8_t>::SetNull(level);
249
+ }
250
+
251
if (!app::NumericAttributeTraits<uint8_t>::IsNullValue(level))
252
{
253
CommandId command = LevelControlHasFeature(endpoint, LevelControl::Feature::kOnOff) ? Commands::MoveToLevelWithOnOff::Id
0 commit comments