Skip to content

Commit 738f8a2

Browse files
committed
Fix BridgedDeviceInformationCluster wildcard read
1 parent 138b5b8 commit 738f8a2

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)