Skip to content

Commit 0c395c1

Browse files
committed
Drop impossible non-atomic attribute status after rollback
1 parent 78c0f22 commit 0c395c1

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

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

+1-11
Original file line numberDiff line numberDiff line change
@@ -588,17 +588,7 @@ void ThermostatAttrAccess::RollbackAtomicWrite(CommandHandler * commandObj, cons
588588

589589
for (size_t i = 0; i < attributeStatuses.AllocatedSize(); ++i)
590590
{
591-
auto & attributeStatus = attributeStatuses[i];
592-
switch (attributeStatus.attributeID)
593-
{
594-
case Presets::Id:
595-
case Schedules::Id:
596-
attributeStatus.statusCode = to_underlying(Status::Success);
597-
break;
598-
default:
599-
commandObj->AddStatus(commandPath, Status::InvalidInState);
600-
return;
601-
}
591+
attributeStatuses[i].statusCode = to_underlying(Status::Success);
602592
}
603593

604594
SendAtomicResponse(commandObj, commandPath, status, attributeStatuses);

0 commit comments

Comments
 (0)