From 6d043e9d903c1883d73c1c5c9422b1727a6b0fbe Mon Sep 17 00:00:00 2001 From: Scott Bender Date: Tue, 9 Jul 2019 16:19:39 -0400 Subject: [PATCH] fix: exception when calling toActisenseSerialFormat (#82) --- lib/stringMsg.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/stringMsg.js b/lib/stringMsg.js index 9435fb5..1081aac 100644 --- a/lib/stringMsg.js +++ b/lib/stringMsg.js @@ -53,7 +53,8 @@ exports.encodeActisense = ({ prio, pgn, src, dst, data.length, byteString(data) ].join(',')) -exports.toActisenseSerialFormat = (pgn, data, dst=255, src=0) => encodeActisense({ + +exports.toActisenseSerialFormat = (pgn, data, dst=255, src=0) => exports.encodeActisense({ pgn, data, dst, src, })