Skip to content

Commit

Permalink
Revert "cleanup macs which have APS regardless of MAC status"
Browse files Browse the repository at this point in the history
This reverts commit 9d82912.
  • Loading branch information
splitice committed Aug 19, 2024
1 parent 9d82912 commit bee59e5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/Af.js
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ class Af extends EventEmitter {
}
} else {
try {
dataCnfResp = rsp = await this.send(srcEp, dstEp, cId, zclBuffer, afOptions)
rsp = await this.send(srcEp, dstEp, cId, zclBuffer, afOptions)
} catch (err) {
if (areq) {
await Af.areqCancel(areq)
Expand All @@ -642,9 +642,6 @@ class Af extends EventEmitter {
}

if (!areq) {
if(!zutils.isBroadcast(dstEp.nwkAddr) && (afOptions.options === undefined || (afOptions.options & ZSC.AF.options.ACK_REQUEST))) {
await this._controller.request('NWK', 'queuedDelete', {trans: dataCnfResp.trans, nwkaddr: nwkAddr})
}
return rsp
}

Expand Down

0 comments on commit bee59e5

Please sign in to comment.