Skip to content

Commit 2a16290

Browse files
committed
[MATTER] fix TRV attr MinSetpointDeadBand shall allow 0-127 but ignore any attempted change
1 parent b8d1181 commit 2a16290

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/app/clusters/thermostat-server/thermostat-server.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,17 @@ CHIP_ERROR ThermostatAttrAccess::Write(const ConcreteDataAttributePath & aPath,
720720

721721
switch (aPath.mAttributeId)
722722
{
723+
case MinSetpointDeadBand::Id: {
724+
int8_t minSetpointDeadBand;
725+
ReturnErrorOnFailure(aDecoder.Decode(minSetpointDeadBand));
726+
if (minSetpointDeadBand < 0)
727+
{
728+
return CHIP_IM_GLOBAL_STATUS(ConstraintError);
729+
}
730+
// v1.4: 4.3.9.21 - writes to this attribute SHALL be silently ignored
731+
return CHIP_NO_ERROR;
732+
}
733+
break;
723734
case RemoteSensing::Id:
724735
if (localTemperatureNotExposedSupported)
725736
{

0 commit comments

Comments
 (0)