@@ -80,44 +80,31 @@ CHIP_ERROR Instance::Init()
80
80
81
81
CHIP_ERROR Instance::Read (const ConcreteReadAttributePath & aPath, AttributeValueEncoder & aEncoder)
82
82
{
83
- ChipLogDetail (Zcl, " Service Area: Reading" );
83
+ ChipLogDetail (Zcl, " Service Area: Reading attribute " );
84
84
85
85
switch (aPath.mAttributeId )
86
86
{
87
87
88
- case Attributes::SupportedLocations::Id: {
89
- ChipLogProgress (Zcl, " Service Area: Read SupportedLocations" );
88
+ case Attributes::SupportedLocations::Id:
90
89
return ReadSupportedLocations (aEncoder);
91
- }
92
90
93
- case Attributes::SupportedMaps::Id: {
94
- ChipLogProgress (Zcl, " Service Area: Read SupportedMaps" );
91
+ case Attributes::SupportedMaps::Id:
95
92
return ReadSupportedMaps (aEncoder);
96
- }
97
93
98
- case Attributes::SelectedLocations::Id: {
99
- ChipLogProgress (Zcl, " Service Area: Read SelectedLocations" );
94
+ case Attributes::SelectedLocations::Id:
100
95
return ReadSelectedLocations (aEncoder);
101
- }
102
96
103
- case Attributes::CurrentLocation::Id: {
104
- ChipLogProgress (Zcl, " Service Area: Read CurrentLocation" );
97
+ case Attributes::CurrentLocation::Id:
105
98
return aEncoder.Encode (GetCurrentLocation ());
106
- }
107
99
108
- case Attributes::EstimatedEndTime::Id: {
109
- ChipLogProgress (Zcl, " Service Area: Read EstimatedEndTime" );
100
+ case Attributes::EstimatedEndTime::Id:
110
101
return aEncoder.Encode (GetEstimatedEndTime ());
111
- }
112
102
113
- case Attributes::Progress::Id: {
114
- ChipLogProgress (Zcl, " Service Area: Read Progress" );
103
+ case Attributes::Progress::Id:
115
104
return ReadProgress (aEncoder);
116
- }
117
105
118
- case Attributes::FeatureMap::Id: {
106
+ case Attributes::FeatureMap::Id:
119
107
return aEncoder.Encode (mFeature .Raw ());
120
- }
121
108
122
109
default :
123
110
ChipLogProgress (Zcl, " Service Area: Read unsupported attribute %u" , aPath.mAttributeId );
0 commit comments