Skip to content

Commit f683b68

Browse files
committed
Code update
1 parent 77a83fb commit f683b68

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

examples/fabric-bridge-app/linux/CommissionerControlDelegate.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ CHIP_ERROR CommissionerControlDelegate::HandleCommissioningApprovalRequest(const
116116
mLabel.ClearValue();
117117
}
118118

119-
CHIP_ERROR err = CommissionerControlServer::GenerateCommissioningRequestResultEvent(kAggregatorEndpointId, result);
119+
CHIP_ERROR err = CommissionerControl::GenerateCommissioningRequestResultEvent(kAggregatorEndpointId, result);
120120

121121
if (err == CHIP_NO_ERROR)
122122
{
@@ -233,12 +233,12 @@ CHIP_ERROR CommissionerControlInit()
233233
BitMask<Clusters::CommissionerControl::SupportedDeviceCategoryBitmap> supportedDeviceCategories;
234234
supportedDeviceCategories.SetField(Clusters::CommissionerControl::SupportedDeviceCategoryBitmap::kFabricSynchronization, 1);
235235

236-
Protocols::InteractionModel::Status status = CommissionerControl::SetSupportedDeviceCategories(
237-
Clusters::CommissionerControl::kAggregatorEndpointId, supportedDeviceCategories);
236+
err = CommissionerControl::SetSupportedDeviceCategories(Clusters::CommissionerControl::kAggregatorEndpointId,
237+
supportedDeviceCategories);
238238

239-
if (status != Protocols::InteractionModel::Status::Success)
239+
if (err != CHIP_NO_ERROR)
240240
{
241-
ChipLogError(NotSpecified, "Failed to set SupportedDeviceCategories: %d", static_cast<int>(status));
241+
ChipLogError(NotSpecified, "Failed to set SupportedDeviceCategories: %d", err);
242242
sCommissionerControlDelegate.reset();
243243
return CHIP_ERROR_INTERNAL;
244244
}

examples/fabric-sync/bridge/CommissionerControlDelegate.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ CHIP_ERROR CommissionerControlDelegate::HandleCommissioningApprovalRequest(const
114114
mLabel.ClearValue();
115115
}
116116

117-
CHIP_ERROR err = CommissionerControlServer::GenerateCommissioningRequestResultEvent(kAggregatorEndpointId, result);
117+
CHIP_ERROR err = GenerateCommissioningRequestResultEvent(kAggregatorEndpointId, result);
118118

119119
if (err == CHIP_NO_ERROR)
120120
{
@@ -232,12 +232,12 @@ CHIP_ERROR CommissionerControlInit(bridge::FabricAdminDelegate * fabricAdmin)
232232
BitMask<Clusters::CommissionerControl::SupportedDeviceCategoryBitmap> supportedDeviceCategories;
233233
supportedDeviceCategories.SetField(Clusters::CommissionerControl::SupportedDeviceCategoryBitmap::kFabricSynchronization, 1);
234234

235-
Protocols::InteractionModel::Status status = CommissionerControl::SetSupportedDeviceCategories(
236-
Clusters::CommissionerControl::kAggregatorEndpointId, supportedDeviceCategories);
235+
err = CommissionerControl::SetSupportedDeviceCategories(Clusters::CommissionerControl::kAggregatorEndpointId,
236+
supportedDeviceCategories);
237237

238-
if (status != Protocols::InteractionModel::Status::Success)
238+
if (err != CHIP_NO_ERROR)
239239
{
240-
ChipLogError(NotSpecified, "Failed to set SupportedDeviceCategories: %d", static_cast<int>(status));
240+
ChipLogError(NotSpecified, "Failed to set SupportedDeviceCategories: %d", err);
241241
sCommissionerControlDelegate.reset();
242242
return CHIP_ERROR_INTERNAL;
243243
}

0 commit comments

Comments
 (0)