Skip to content

Commit

Permalink
fix: use non blocking sends for canbus (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbender9 authored Apr 29, 2021
1 parent a1607d9 commit 5f72d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/canbus.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function CanbusStream (options) {
})
} else {
try {
this.channel = socketcan.createRawChannel(canDevice);
this.channel = socketcan.createRawChannelWithOptions(canDevice, { non_block_send: true} );
this.channel.addListener('onMessage', (msg) => {
var pgn = parseCanId(msg.id)

Expand Down

0 comments on commit 5f72d19

Please sign in to comment.