Skip to content

Commit 6c0101c

Browse files
hastybzbarsky-apple
andauthoredAug 28, 2024
Apply suggestions from code review
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
1 parent ee375eb commit 6c0101c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ void ThermostatAttrAccess::OnFabricRemoved(const FabricTable & fabricTable, Fabr
468468
}
469469
}
470470

471-
void MatterThermostatClusterServerAttributeChangedCallback(const chip::app::ConcreteAttributePath & attributePath)
471+
void MatterThermostatClusterServerAttributeChangedCallback(const ConcreteAttributePath & attributePath)
472472
{
473473
uint32_t flags;
474474
if (FeatureMap::Get(attributePath.mEndpointId, &flags) != Status::Success)
@@ -477,7 +477,7 @@ void MatterThermostatClusterServerAttributeChangedCallback(const chip::app::Conc
477477
return;
478478
}
479479

480-
auto featureMap = chip::BitMask<Feature, uint32_t>(flags);
480+
auto featureMap = BitMask<Feature, uint32_t>(flags);
481481
if (!featureMap.Has(Feature::kPresets))
482482
{
483483
// This server does not support presets, so nothing to do
@@ -487,7 +487,7 @@ void MatterThermostatClusterServerAttributeChangedCallback(const chip::app::Conc
487487
bool occupied = true;
488488
if (featureMap.Has(Feature::kOccupancy))
489489
{
490-
chip::BitMask<OccupancyBitmap, uint8_t> occupancy;
490+
BitMask<OccupancyBitmap, uint8_t> occupancy;
491491
if (Occupancy::Get(attributePath.mEndpointId, &occupancy) == Status::Success)
492492
{
493493
occupied = occupancy.Has(OccupancyBitmap::kOccupied);
@@ -808,7 +808,7 @@ MatterThermostatClusterServerPreAttributeChangedCallback(const app::ConcreteAttr
808808
}
809809
}
810810

811-
void MatterThermostatClusterServerAttributeChangedCallback(const chip::app::ConcreteAttributePath & attributePath)
811+
void MatterThermostatClusterServerAttributeChangedCallback(const ConcreteAttributePath & attributePath)
812812
{
813813
Thermostat::MatterThermostatClusterServerAttributeChangedCallback(attributePath);
814814
}

0 commit comments

Comments
 (0)