Skip to content

Commit f0eafac

Browse files
authoredAug 23, 2024
Update src/app/clusters/thermostat-server/thermostat-server-presets.cpp
1 parent 0f1993f commit f0eafac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ CHIP_ERROR ThermostatAttrAccess::AppendPendingPreset(Thermostat::Delegate * dele
408408
uint8_t numberOfPendingPresets = CountNumberOfPendingPresets(delegate);
409409

410410
// We will be adding one more preset, so reject if the length is already at max.
411-
if (numberOfPendingPresets >= numberOfPresetsSupported)
411+
if (numberOfPendingPresets >= delegate->GetNumberOfPresets())
412412
{
413413
return CHIP_IM_GLOBAL_STATUS(ResourceExhausted);
414414
}

0 commit comments

Comments
 (0)