From 67b108a5d6ac0149cd9ec0955e5da5b647fffd9b Mon Sep 17 00:00:00 2001 From: Scott Bender Date: Wed, 28 Oct 2020 11:40:01 -0400 Subject: [PATCH] fix: simpleCan not sending out initial address claim --- lib/simpleCan.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/simpleCan.js b/lib/simpleCan.js index 8f8a698..256d045 100644 --- a/lib/simpleCan.js +++ b/lib/simpleCan.js @@ -45,8 +45,8 @@ SimpleCan.prototype.start = function () { SimpleCan.prototype.sendPGN = function (msg) { if ( this.candevice ) { - if ( !this.candevice.cansend && (_.isString(msg) || msg.pgn !== 59904) ) { - //we have not completed address claim yet + if ( !this.candevice.cansend && msg.pgn !== 59904 && msg.pgn !== 60928 && msg.pgn !== 126996 ) { + debug('ignoring %j', msg) return }