From 5aeddf404fba37f8e6dbc7fdbc3b920769a2e41b Mon Sep 17 00:00:00 2001 From: MrStas Date: Tue, 19 Nov 2024 08:27:11 +1100 Subject: [PATCH] injecting optional Manufacturer code --- lib/candevice.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/candevice.js b/lib/candevice.js index ca814ca..4ead78f 100644 --- a/lib/candevice.js +++ b/lib/candevice.js @@ -45,7 +45,7 @@ class CanDevice extends EventEmitter { dst: 255, prio:6, "Unique Number": 1263, - "Manufacturer Code": 999, + "Manufacturer Code": isNaN(options.mfgCode) ? 999 : options.mfgCode, "Device Function": 130, // PC gateway "Device Class": 25, // Inter/Intranetwork Device "Device Instance Lower": 0,