Skip to content

Commit

Permalink
added missing type conversion for baudrate argument
Browse files Browse the repository at this point in the history
  • Loading branch information
mwittig committed Mar 5, 2019
1 parent 5dfb89a commit 67a836d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ colors = require('colors');

serialDevice = process.argv[2] || '/dev/ttyUSB0';

baudrate = process.argv[3] || 115200;
baudrate = parseInt(process.argv[3]) || 115200;

board = new Board("serialport", {
serialDevice: serialDevice,
Expand Down

0 comments on commit 67a836d

Please sign in to comment.