Skip to content

Commit

Permalink
Update thermostat-server.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
nivi-apple authored Aug 6, 2024
1 parent 9912039 commit e6e19a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/clusters/thermostat-server/thermostat-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ bool IsPresetHandlePresentInPresets(Delegate * delegate, const ByteSpan & preset
*
* @return count of the updated Presets attribute if the pending presets were applied to it. Return 0 for error cases.
*/
uint8_t CountUpdatedPresetsAfterApplyingPendingPresets(Delegate * delegate)
uint8_t CountNumberOfPendingPresets(Delegate * delegate)
{
uint8_t numberOfPendingPresets = 0;

Expand All @@ -349,7 +349,7 @@ uint8_t CountUpdatedPresetsAfterApplyingPendingPresets(Delegate * delegate)
{
ChipLogError(
Zcl,
"CountUpdatedPresetsAfterApplyingPendingPresets: GetPendingPresetAtIndex failed with error %" CHIP_ERROR_FORMAT,
"CountNumberOfPendingPresets: GetPendingPresetAtIndex failed with error %" CHIP_ERROR_FORMAT,
err.Format());
return 0;
}
Expand Down Expand Up @@ -1513,7 +1513,7 @@ imcode commitPresets(Delegate * delegate, EndpointId endpoint)
}
}

uint8_t totalCount = CountUpdatedPresetsAfterApplyingPendingPresets(delegate);
uint8_t totalCount = CountNumberOfPendingPresets(delegate);

uint8_t numberOfPresetsSupported = delegate->GetNumberOfPresets();

Expand Down

0 comments on commit e6e19a2

Please sign in to comment.