bug fixes

This commit is contained in:
Shannon Sterz 2016-01-13 23:58:55 +01:00
parent c3a37ff63f
commit 894e19dcf1

View file

@ -4,11 +4,13 @@ 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);
if ( error ) {
sucess = false; serialPort.open(function (error) {
} if ( error ) {
}); sucess = false;
}
});
/* GET home page. */ /* GET home page. */
router.get('/', function(req, res, next) { router.get('/', function(req, res, next) {