@@ -136,13 +136,13 @@ EndpointId ContentAppPlatform::AddContentApp(ContentApp * app, EmberAfEndpointTy
136
136
index ++;
137
137
continue ;
138
138
}
139
- EmberAfStatus ret ;
139
+ CHIP_ERROR err ;
140
140
EndpointId initEndpointId = mCurrentEndpointId ;
141
141
142
142
do
143
143
{
144
- ret = emberAfSetDynamicEndpoint (index , mCurrentEndpointId , ep, dataVersionStorage, deviceTypeList);
145
- if (ret == EMBER_ZCL_STATUS_SUCCESS )
144
+ err = emberAfSetDynamicEndpoint (index , mCurrentEndpointId , ep, dataVersionStorage, deviceTypeList);
145
+ if (err == CHIP_NO_ERROR )
146
146
{
147
147
ChipLogProgress (DeviceLayer, " Added ContentApp %s to dynamic endpoint %d (index=%d)" , vendorApp.applicationId ,
148
148
mCurrentEndpointId , index );
@@ -151,9 +151,9 @@ EndpointId ContentAppPlatform::AddContentApp(ContentApp * app, EmberAfEndpointTy
151
151
IncrementCurrentEndpointID ();
152
152
return app->GetEndpointId ();
153
153
}
154
- else if (ret != EMBER_ZCL_STATUS_DUPLICATE_EXISTS )
154
+ else if (err != CHIP_ERROR_ENDPOINT_EXISTS )
155
155
{
156
- ChipLogError (DeviceLayer, " Adding ContentApp error=%d " , ret );
156
+ ChipLogError (DeviceLayer, " Adding ContentApp error=%" CHIP_ERROR_FORMAT, err. Format () );
157
157
return kNoCurrentEndpointId ;
158
158
}
159
159
IncrementCurrentEndpointID ();
@@ -202,10 +202,10 @@ EndpointId ContentAppPlatform::AddContentApp(ContentApp * app, EmberAfEndpointTy
202
202
index ++;
203
203
continue ;
204
204
}
205
- EmberAfStatus ret = emberAfSetDynamicEndpoint (index , desiredEndpointId, ep, dataVersionStorage, deviceTypeList);
206
- if (ret != EMBER_ZCL_STATUS_SUCCESS )
205
+ CHIP_ERROR err = emberAfSetDynamicEndpoint (index , desiredEndpointId, ep, dataVersionStorage, deviceTypeList);
206
+ if (err != CHIP_NO_ERROR )
207
207
{
208
- ChipLogError (DeviceLayer, " Adding ContentApp error=%d " , ret );
208
+ ChipLogError (DeviceLayer, " Adding ContentApp error : % " CHIP_ERROR_FORMAT, err. Format () );
209
209
return kNoCurrentEndpointId ;
210
210
}
211
211
ChipLogProgress (DeviceLayer, " Added ContentApp %s to dynamic endpoint %d (index=%d)" , vendorApp.applicationId ,
0 commit comments