bug fixes
This commit is contained in:
parent
c3a37ff63f
commit
894e19dcf1
1 changed files with 7 additions and 5 deletions
|
@ -4,7 +4,9 @@ var sucess = true;
|
||||||
var SerialPort = require("serialport").SerialPort
|
var SerialPort = require("serialport").SerialPort
|
||||||
serialPort = new SerialPort("/dev/ttyACM0", {
|
serialPort = new SerialPort("/dev/ttyACM0", {
|
||||||
baudrate: 9600
|
baudrate: 9600
|
||||||
}, false).open(function (error) {
|
}, false);
|
||||||
|
|
||||||
|
serialPort.open(function (error) {
|
||||||
if ( error ) {
|
if ( error ) {
|
||||||
sucess = false;
|
sucess = false;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue