bug fixes

This commit is contained in:
Stefan Sterz 2016-01-13 23:58:55 +01:00
parent c3a37ff63f
commit 894e19dcf1
1 changed files with 7 additions and 5 deletions

View File

@ -4,11 +4,13 @@ var sucess = true;
var SerialPort = require("serialport").SerialPort
serialPort = new SerialPort("/dev/ttyACM0", {
baudrate: 9600
}, false).open(function (error) {
if ( error ) {
sucess = false;
}
});
}, false);
serialPort.open(function (error) {
if ( error ) {
sucess = false;
}
});
/* GET home page. */
router.get('/', function(req, res, next) {