diff --git a/src/app/clusters/thermostat-server/PresetStructWithOwnedMembers.cpp b/src/app/clusters/thermostat-server/PresetStructWithOwnedMembers.cpp index 86f354192540e6..dfc395f6bee81d 100644 --- a/src/app/clusters/thermostat-server/PresetStructWithOwnedMembers.cpp +++ b/src/app/clusters/thermostat-server/PresetStructWithOwnedMembers.cpp @@ -63,7 +63,7 @@ CHIP_ERROR PresetStructWithOwnedMembers::SetPresetHandle(const Nullable kPresetHandleSize) { ChipLogError(Zcl, "Failed to set Preset handle. New preset handle size (%u) > allowed preset handle size (%u)", - static_cast(newPresetHandleSize), static_cast(kPresetNameSize)); + static_cast(newPresetHandleSize), static_cast(kPresetNameSize)); return CHIP_ERROR_NO_MEMORY; } MutableByteSpan targetSpan(presetHandleData); diff --git a/src/app/clusters/thermostat-server/thermostat-server.cpp b/src/app/clusters/thermostat-server/thermostat-server.cpp index fe6cbb28e7d5d3..71c2f3d6fd6260 100644 --- a/src/app/clusters/thermostat-server/thermostat-server.cpp +++ b/src/app/clusters/thermostat-server/thermostat-server.cpp @@ -1510,7 +1510,7 @@ bool emberAfThermostatClusterCommitPresetsSchedulesRequestCallback( return SendResponseAndCleanUp(delegate, endpoint, commandObj, commandPath, imcode::ConstraintError); } - // If the preset type for the preset scenario does not support name and a name is specified, return CONSTRAINT_ERROR. + // If the preset type for the preset scenario does not support names and a name is specified, return CONSTRAINT_ERROR. if (!PresetTypeSupportsNames(delegate, presetScenario) && pendingPreset.GetName().HasValue()) { return SendResponseAndCleanUp(delegate, endpoint, commandObj, commandPath, imcode::ConstraintError);