Skip to content

Commit

Permalink
fix: Ember: ignore endpoint for Touchlink matching (#1306)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerivec authored Jan 20, 2025
1 parent 2923236 commit 57c94c5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/adapter/ember/adapter/oneWaitress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ export class EmberOneWaitress {

// no target in touchlink, also no APS sequence, but use the ZCL one instead
if (
(waiter.matcher.apsFrame.profileId === TOUCHLINK_PROFILE_ID || payload.address === waiter.matcher.target) &&
(!waiter.matcher.zclSequence || payload.header.transactionSequenceNumber === waiter.matcher.zclSequence) &&
(!waiter.matcher.commandIdentifier || payload.header.commandIdentifier === waiter.matcher.commandIdentifier) &&
payload.clusterID === waiter.matcher.apsFrame.clusterId &&
payload.endpoint === waiter.matcher.apsFrame.destinationEndpoint
(waiter.matcher.apsFrame.profileId === TOUCHLINK_PROFILE_ID ||
(payload.address === waiter.matcher.target && payload.endpoint === waiter.matcher.apsFrame.destinationEndpoint)) &&
(waiter.matcher.zclSequence === undefined || payload.header.transactionSequenceNumber === waiter.matcher.zclSequence) &&
(waiter.matcher.commandIdentifier === undefined || payload.header.commandIdentifier === waiter.matcher.commandIdentifier) &&
payload.clusterID === waiter.matcher.apsFrame.clusterId
) {
clearTimeout(waiter.timer);

Expand Down

0 comments on commit 57c94c5

Please sign in to comment.