Skip to content

Commit

Permalink
Revert "fix: multi line actisense messages failing (#183)" (#186)
Browse files Browse the repository at this point in the history
This reverts commit e453b1a.
  • Loading branch information
sbender9 authored Mar 2, 2022
1 parent d5f080e commit 333524d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 29 deletions.
2 changes: 1 addition & 1 deletion lib/stringMsg.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ exports.parseActisense = (input) => {
buildCanId(prio, pgn, dst, src),
'Actisense',
Buffer.from(data.join(''), 'hex'),
{ len: Number(len), timestamp },
{ len: Number(len), timestamp, coalesced: true },
)
}
exports.encodeActisense = ({
Expand Down
1 change: 1 addition & 0 deletions lib/stringMsg.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ describe('parseActisense', () => {
test('basic msg', () => {
const msg = '2016-04-09T16:41:09.078Z,3,127257,17,255,8,00,ff,7f,52,00,21,fe,ff'
expect(parseActisense(msg)).toEqual({
coalesced: true,
data: Buffer.from('00ff7f520021feff', 'hex'),
dst: 255,
len: 8,
Expand Down
29 changes: 1 addition & 28 deletions test/pgns/129540.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 333524d

Please sign in to comment.