@canboat/canboatjs 2.4.1 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/analyzerjs +1 -1
- package/bin/ikonvert-serial +4 -2
- package/ios.js +1 -1
- package/ios_canboat.js/main.js +2 -2454
- package/ios_canboat.js/main.js.LICENSE.txt +9 -0
- package/lib/fromPgn.js +8 -5
- package/lib/serial.js +3 -2
- package/lib/stringMsg.js +0 -1
- package/package.json +3 -2
package/bin/analyzerjs
CHANGED
package/bin/ikonvert-serial
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
const { Transform } = require('stream');
|
|
4
|
-
const SerialPort = require('serialport')
|
|
4
|
+
const { SerialPort } = require('serialport')
|
|
5
5
|
|
|
6
6
|
if ( process.argv.length < 3 ) {
|
|
7
7
|
console.error('Please specify a device')
|
|
@@ -13,10 +13,12 @@ let device = process.argv[2]
|
|
|
13
13
|
|
|
14
14
|
let baud = process.argv.length > 3 ? Number(process.argv[3]) : 230400
|
|
15
15
|
|
|
16
|
-
let serial = new SerialPort(
|
|
16
|
+
let serial = new SerialPort({
|
|
17
|
+
path:device,
|
|
17
18
|
baudRate: baud
|
|
18
19
|
})
|
|
19
20
|
|
|
21
|
+
|
|
20
22
|
const toStringTr = new Transform({
|
|
21
23
|
objectMode: true,
|
|
22
24
|
|