Skip to content

Commit d31f7be

Browse files
authored
Fix BridgedDeviceInformationCluster wildcard read (#34748)
1 parent b9c192b commit d31f7be

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/fabric-bridge-app/fabric-bridge-common/src/ZCLCallbacks.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,9 @@ Protocols::InteractionModel::Status emberAfExternalAttributeReadCallback(Endpoin
3434
const EmberAfAttributeMetadata * attributeMetadata,
3535
uint8_t * buffer, uint16_t maxReadLength)
3636
{
37-
uint16_t endpointIndex = emberAfGetDynamicIndexFromEndpoint(endpoint);
3837
AttributeId attributeId = attributeMetadata->attributeId;
3938

40-
Device * dev = DeviceMgr().GetDevice(endpointIndex);
39+
Device * dev = DeviceMgr().GetDevice(endpoint);
4140
if (dev != nullptr && clusterId == app::Clusters::BridgedDeviceBasicInformation::Id)
4241
{
4342
using namespace app::Clusters::BridgedDeviceBasicInformation::Attributes;

0 commit comments

Comments
 (0)