@@ -232,26 +232,27 @@ chip::Protocols::InteractionModel::Status chefRvcOperationalStateReadCallback(ch
232
232
uint8_t * buffer, uint16_t maxReadLength)
233
233
{
234
234
chip::Protocols::InteractionModel::Status ret = chip::Protocols::InteractionModel::Status::Success;
235
- chip::AttributeId attributeId = attributeMetadata->attributeId ;
236
- switch (attributeId) {
237
- case chip::app::Clusters::RvcOperationalState::Attributes::CurrentPhase::Id: {
235
+ chip::AttributeId attributeId = attributeMetadata->attributeId ;
236
+ switch (attributeId)
237
+ {
238
+ case chip::app::Clusters::RvcOperationalState::Attributes::CurrentPhase::Id: {
238
239
239
- app::DataModel::Nullable<uint8_t > currentPhase = gRvcOperationalStateInstance ->GetCurrentPhase ();
240
- if (currentPhase.IsNull ())
241
- {
242
- ret = chip::Protocols::InteractionModel::Status::UnsupportedAttribute;
243
- break ;
244
- }
245
- *buffer = currentPhase.Value ();
246
- }
247
- break ;
248
- case chip::app::Clusters::RvcOperationalState::Attributes::OperationalState::Id: {
249
- *buffer = gRvcOperationalStateInstance ->GetCurrentOperationalState ();
240
+ app::DataModel::Nullable<uint8_t > currentPhase = gRvcOperationalStateInstance ->GetCurrentPhase ();
241
+ if (currentPhase.IsNull ())
242
+ {
243
+ ret = chip::Protocols::InteractionModel::Status::UnsupportedAttribute;
244
+ break ;
250
245
}
246
+ *buffer = currentPhase.Value ();
247
+ }
248
+ break ;
249
+ case chip::app::Clusters::RvcOperationalState::Attributes::OperationalState::Id: {
250
+ *buffer = gRvcOperationalStateInstance ->GetCurrentOperationalState ();
251
+ }
252
+ break ;
253
+ default :
254
+ ChipLogError (DeviceLayer, " Unsupported Attribute ID: %d" , static_cast <int >(attributeId));
251
255
break ;
252
- default :
253
- ChipLogError (DeviceLayer, " Unsupported Attribute ID: %d" , static_cast <int >(attributeId));
254
- break ;
255
256
}
256
257
257
258
return ret;
0 commit comments