Skip to content

Commit b36d342

Browse files
committed
fix: Log frames that share a pending TSN but are not its response
Makes devices that answer with a Default Response for the wrong command, or an undeclared response command, visible in the debug log.
1 parent 59382dc commit b36d342

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎lib/Cluster.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,9 @@ class Cluster extends EventEmitter {
789789
(frame.cmdId === trxHandler.responseCmdId
790790
&& frame.frameControl.clusterSpecific === !trxHandler.global)
791791
|| (command.name === 'defaultResponse' && args.cmdId === trxHandler.cmdId));
792+
if (trxHandler && !isTrxResponse) {
793+
debug(this.logId, 'frame with pending trx', frame.trxSequenceNumber, 'is not its response:', command.name);
794+
}
792795

793796
// Invoke the right handler
794797
const handler = isTrxResponse ? trxHandler : this[handlerName];

0 commit comments

Comments
 (0)