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 and pull[bot] committed Nov 21, 2024
1 parent 5a6aa87 commit 1232399
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 1232399

Please sign in to comment.