Skip to content

Commit

Permalink
Better condition for IEEE vs nwk matching (avoid possible edge-cases).
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerivec committed Sep 17, 2024
1 parent 64c44ac commit 23d66a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/adapter/ember/adapter/emberAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1946,7 +1946,7 @@ export class EmberAdapter extends Adapter {
if (responseClusterId) {
return await this.oneWaitress.startWaitingFor(
{
target: networkAddress === ZSpec.NULL_NODE_ID ? (ieeeAddress as EUI64) : networkAddress,
target: responseClusterId === Zdo.ClusterId.NETWORK_ADDRESS_RESPONSE ? (ieeeAddress as EUI64) : networkAddress,
apsFrame,
zdoResponseClusterId: responseClusterId,
},
Expand Down
2 changes: 1 addition & 1 deletion src/adapter/z-stack/adapter/zStackAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ class ZStackAdapter extends Adapter {
UnpiConstants.Type.AREQ,
Subsystem.ZDO,
cmd.name,
networkAddress === ZSpec.NULL_NODE_ID ? ieeeAddress : networkAddress,
responseClusterId === Zdo.ClusterId.NETWORK_ADDRESS_RESPONSE ? ieeeAddress : networkAddress,
undefined,
undefined,
);
Expand Down

0 comments on commit 23d66a0

Please sign in to comment.