@@ -142,7 +142,7 @@ Status BuildAttributeStatuses(const EndpointId endpoint, const DataModel::Decoda
142
142
143
143
bool requestedPresets = false , requestedSchedules = false ;
144
144
attributeStatusCount = 0 ;
145
- if (!countAttributeRequests (attributeRequests, attributeStatusCount, requestedPresets, requestedSchedules))
145
+ if (!CountAttributeRequests (attributeRequests, attributeStatusCount, requestedPresets, requestedSchedules))
146
146
{
147
147
// We errored reading the list
148
148
return Status::InvalidCommand;
@@ -300,7 +300,7 @@ void ThermostatAttrAccess::BeginAtomicWrite(CommandHandler * commandObj, const C
300
300
301
301
size_t attributeStatusCount = 0 ;
302
302
Platform::ScopedMemoryBuffer<AtomicAttributeStatusStruct::Type> attributeStatuses;
303
- auto status = buildAttributeStatuses (endpoint, commandData.attributeRequests , attributeStatusCount, attributeStatuses, false );
303
+ auto status = BuildAttributeStatuses (endpoint, commandData.attributeRequests , attributeStatusCount, attributeStatuses, false );
304
304
if (status != Status::Success)
305
305
{
306
306
commandObj->AddStatus (commandPath, status);
@@ -329,7 +329,7 @@ void ThermostatAttrAccess::BeginAtomicWrite(CommandHandler * commandObj, const C
329
329
{
330
330
case Presets::Id:
331
331
case Schedules::Id:
332
- auto attributeTimeout = delegate->GetAtomicWriteTimeout (attributeId);
332
+ auto attributeTimeout = delegate->GetMaxAtomicWriteTimeout (attributeId);
333
333
334
334
if (attributeTimeout.has_value ())
335
335
{
@@ -379,7 +379,7 @@ void ThermostatAttrAccess::BeginAtomicWrite(CommandHandler * commandObj, const C
379
379
SetAtomicWrite (endpoint, GetSourceScopedNodeId (commandObj), AtomicWriteState::Open);
380
380
}
381
381
382
- sendAtomicResponse (commandObj, commandPath, status, attributeStatuses, attributeStatusCount, MakeOptional (timeout.count ()));
382
+ SendAtomicResponse (commandObj, commandPath, status, attributeStatuses, attributeStatusCount, MakeOptional (timeout.count ()));
383
383
}
384
384
385
385
void ThermostatAttrAccess::CommitAtomicWrite (CommandHandler * commandObj, const ConcreteCommandPath & commandPath,
@@ -397,7 +397,7 @@ void ThermostatAttrAccess::CommitAtomicWrite(CommandHandler * commandObj, const
397
397
398
398
size_t attributeStatusCount = 0 ;
399
399
Platform::ScopedMemoryBuffer<AtomicAttributeStatusStruct::Type> attributeStatuses;
400
- auto status = buildAttributeStatuses (endpoint, commandData.attributeRequests , attributeStatusCount, attributeStatuses, true );
400
+ auto status = BuildAttributeStatuses (endpoint, commandData.attributeRequests , attributeStatusCount, attributeStatuses, true );
401
401
if (status != Status::Success)
402
402
{
403
403
commandObj->AddStatus (commandPath, status);
@@ -443,7 +443,7 @@ void ThermostatAttrAccess::CommitAtomicWrite(CommandHandler * commandObj, const
443
443
}
444
444
445
445
ResetAtomicWrite (endpoint);
446
- sendAtomicResponse (commandObj, commandPath, status, attributeStatuses, attributeStatusCount);
446
+ SendAtomicResponse (commandObj, commandPath, status, attributeStatuses, attributeStatusCount);
447
447
}
448
448
449
449
void ThermostatAttrAccess::RollbackAtomicWrite (CommandHandler * commandObj, const ConcreteCommandPath & commandPath,
@@ -462,7 +462,7 @@ void ThermostatAttrAccess::RollbackAtomicWrite(CommandHandler * commandObj, cons
462
462
463
463
size_t attributeStatusCount = 0 ;
464
464
Platform::ScopedMemoryBuffer<AtomicAttributeStatusStruct::Type> attributeStatuses;
465
- auto status = buildAttributeStatuses (endpoint, commandData.attributeRequests , attributeStatusCount, attributeStatuses, true );
465
+ auto status = BuildAttributeStatuses (endpoint, commandData.attributeRequests , attributeStatusCount, attributeStatuses, true );
466
466
if (status != Status::Success)
467
467
{
468
468
commandObj->AddStatus (commandPath, status);
@@ -493,7 +493,7 @@ void ThermostatAttrAccess::RollbackAtomicWrite(CommandHandler * commandObj, cons
493
493
}
494
494
}
495
495
496
- sendAtomicResponse (commandObj, commandPath, status, attributeStatuses, attributeStatusCount);
496
+ SendAtomicResponse (commandObj, commandPath, status, attributeStatuses, attributeStatusCount);
497
497
}
498
498
499
499
void ThermostatAttrAccess::SetAtomicWrite (EndpointId endpoint, ScopedNodeId originatorNodeId, AtomicWriteState state)
0 commit comments