Skip to content

Commit 4334421

Browse files
hastypimpalemahesh
authored andcommitted
Remove obsolete references to CommitPresetsSchedulesRequest from thermostat-server (project-chip#37314)
1 parent 854e6e2 commit 4334421

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app/clusters/thermostat-server/thermostat-delegate.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class Delegate
120120
* matches i.e. has the same presetHandle as an existing entry in the Presets attribute, the thermostat will update the entry
121121
* with the new preset values, otherwise it will add a new preset to the Presets attribute. For new presets that get added,
122122
* it is the responsibility of this API to allocate unique preset handles to the presets before saving the preset. This will be
123-
* called when the Thermostat receives a CommitPresetsSchedulesRequest command to commit the pending preset changes.
123+
* called when the Thermostat receives a AtomicRequest command of type CommitWrite to commit the pending preset changes.
124124
*
125125
* @return CHIP_NO_ERROR if the updates to the presets attribute has been committed successfully.
126126
* @return CHIP_ERROR if the updates to the presets attribute failed to commit for some reason.

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ Status ThermostatAttrAccess::PrecommitPresets(EndpointId endpoint)
464464
if (err != CHIP_NO_ERROR)
465465
{
466466
ChipLogError(Zcl,
467-
"emberAfThermostatClusterCommitPresetsSchedulesRequestCallback: GetPresetAtIndex failed with error "
467+
"PrecommitPresets: GetPresetAtIndex failed with error "
468468
"%" CHIP_ERROR_FORMAT,
469469
err.Format());
470470
return Status::InvalidInState;
@@ -516,7 +516,7 @@ Status ThermostatAttrAccess::PrecommitPresets(EndpointId endpoint)
516516
if (err != CHIP_NO_ERROR)
517517
{
518518
ChipLogError(Zcl,
519-
"emberAfThermostatClusterCommitPresetsSchedulesRequestCallback: GetPendingPresetAtIndex failed with error "
519+
"PrecommitPresets: GetPendingPresetAtIndex failed with error "
520520
"%" CHIP_ERROR_FORMAT,
521521
err.Format());
522522
return Status::InvalidInState;

0 commit comments

Comments
 (0)