diff --git a/src/app/clusters/thermostat-server/thermostat-server.cpp b/src/app/clusters/thermostat-server/thermostat-server.cpp index 284df7716e801a..8fe70211eeda1a 100644 --- a/src/app/clusters/thermostat-server/thermostat-server.cpp +++ b/src/app/clusters/thermostat-server/thermostat-server.cpp @@ -762,7 +762,7 @@ CHIP_ERROR ThermostatAttrAccess::Read(const ConcreteReadAttributePath & aPath, A uint8_t buffer[kPresetHandleSize]; MutableByteSpan activePresetHandleSpan(buffer); - DataModel::Nullable activePresetHandle = DataModel::MakeNullable(activePresetHandleSpan); + auto activePresetHandle = DataModel::MakeNullable(activePresetHandleSpan); CHIP_ERROR err = delegate->GetActivePresetHandle(activePresetHandle); ReturnErrorOnFailure(err); @@ -1465,7 +1465,7 @@ imcode commitPresets(Delegate * delegate, EndpointId endpoint) // attribute set, continue with other checks. uint8_t buffer[kPresetHandleSize]; MutableByteSpan activePresetHandleSpan(buffer); - DataModel::Nullable activePresetHandle = DataModel::MakeNullable(activePresetHandleSpan); + auto activePresetHandle = DataModel::MakeNullable(activePresetHandleSpan); err = delegate->GetActivePresetHandle(activePresetHandle);