Skip to content

Commit e6e19a2

Browse files
authored
Update thermostat-server.cpp
1 parent 9912039 commit e6e19a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ bool IsPresetHandlePresentInPresets(Delegate * delegate, const ByteSpan & preset
330330
*
331331
* @return count of the updated Presets attribute if the pending presets were applied to it. Return 0 for error cases.
332332
*/
333-
uint8_t CountUpdatedPresetsAfterApplyingPendingPresets(Delegate * delegate)
333+
uint8_t CountNumberOfPendingPresets(Delegate * delegate)
334334
{
335335
uint8_t numberOfPendingPresets = 0;
336336

@@ -349,7 +349,7 @@ uint8_t CountUpdatedPresetsAfterApplyingPendingPresets(Delegate * delegate)
349349
{
350350
ChipLogError(
351351
Zcl,
352-
"CountUpdatedPresetsAfterApplyingPendingPresets: GetPendingPresetAtIndex failed with error %" CHIP_ERROR_FORMAT,
352+
"CountNumberOfPendingPresets: GetPendingPresetAtIndex failed with error %" CHIP_ERROR_FORMAT,
353353
err.Format());
354354
return 0;
355355
}
@@ -1513,7 +1513,7 @@ imcode commitPresets(Delegate * delegate, EndpointId endpoint)
15131513
}
15141514
}
15151515

1516-
uint8_t totalCount = CountUpdatedPresetsAfterApplyingPendingPresets(delegate);
1516+
uint8_t totalCount = CountNumberOfPendingPresets(delegate);
15171517

15181518
uint8_t numberOfPresetsSupported = delegate->GetNumberOfPresets();
15191519

0 commit comments

Comments
 (0)