Skip to content

Commit

Permalink
Fix BridgedDeviceInformationCluster wildcard read (#34748)
Browse files Browse the repository at this point in the history
  • Loading branch information
tehampson authored Aug 5, 2024
1 parent b9c192b commit d31f7be
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@ Protocols::InteractionModel::Status emberAfExternalAttributeReadCallback(Endpoin
const EmberAfAttributeMetadata * attributeMetadata,
uint8_t * buffer, uint16_t maxReadLength)
{
uint16_t endpointIndex = emberAfGetDynamicIndexFromEndpoint(endpoint);
AttributeId attributeId = attributeMetadata->attributeId;

Device * dev = DeviceMgr().GetDevice(endpointIndex);
Device * dev = DeviceMgr().GetDevice(endpoint);
if (dev != nullptr && clusterId == app::Clusters::BridgedDeviceBasicInformation::Id)
{
using namespace app::Clusters::BridgedDeviceBasicInformation::Attributes;
Expand Down

0 comments on commit d31f7be

Please sign in to comment.