@@ -146,7 +146,7 @@ void ThermostatAtomicWriteManager::OnTimerExpired(EndpointId endpoint)
146
146
{
147
147
148
148
auto atomicWriteState = mAtomicWriteSessions [i];
149
- if (atomicWriteState.state == kAtomicWriteState_Open && atomicWriteState.endpointId == endpoint)
149
+ if (atomicWriteState.state == AtomicWriteState::Open && atomicWriteState.endpointId == endpoint)
150
150
{
151
151
if (mDelegate != nullptr )
152
152
{
@@ -185,7 +185,7 @@ bool ThermostatAtomicWriteManager::InWrite(const std::optional<AttributeId> attr
185
185
186
186
if (ep < ArraySize (mAtomicWriteSessions ))
187
187
{
188
- inAtomicWrite = mAtomicWriteSessions [ep].state == kAtomicWriteState_Open ;
188
+ inAtomicWrite = mAtomicWriteSessions [ep].state == AtomicWriteState::Open ;
189
189
}
190
190
return inAtomicWrite;
191
191
}
@@ -352,7 +352,7 @@ bool ThermostatAtomicWriteManager::BeginWrite(chip::app::CommandHandler * comman
352
352
DataModel::List<const AtomicAttributeStatusStruct::Type>(attributeStatuses.data (), attributeStatuses.size ());
353
353
if (status == Status::Success)
354
354
{
355
- SetWriteState (endpoint, GetSourceScopedNodeId (commandObj), kAtomicWriteState_Open );
355
+ SetWriteState (endpoint, GetSourceScopedNodeId (commandObj), AtomicWriteState::Open );
356
356
timeout = std::min (timeoutRequest, timeout);
357
357
response.timeout = MakeOptional (timeout.count ());
358
358
ScheduleTimer (endpoint, timeout);
@@ -481,15 +481,15 @@ bool ThermostatAtomicWriteManager::RollbackWrite(chip::app::CommandHandler * com
481
481
void ThermostatAtomicWriteManager::ResetWrite (EndpointId endpoint)
482
482
{
483
483
ClearTimer (endpoint);
484
- SetWriteState (endpoint, ScopedNodeId (), kAtomicWriteState_Closed );
484
+ SetWriteState (endpoint, ScopedNodeId (), AtomicWriteState::Closed );
485
485
}
486
486
487
487
void ThermostatAtomicWriteManager::ResetWrite (FabricIndex fabricIndex)
488
488
{
489
489
for (size_t i = 0 ; i < ArraySize (mAtomicWriteSessions ); ++i)
490
490
{
491
491
auto atomicWriteState = mAtomicWriteSessions [i];
492
- if (atomicWriteState.state == kAtomicWriteState_Open && atomicWriteState.nodeId .GetFabricIndex () == fabricIndex)
492
+ if (atomicWriteState.state == AtomicWriteState::Open && atomicWriteState.nodeId .GetFabricIndex () == fabricIndex)
493
493
{
494
494
ResetWrite (atomicWriteState.endpointId );
495
495
}
0 commit comments