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