break mispelled and put a timeout after clear break too

This commit is contained in:
Jacob Rosenthal 2015-03-01 19:00:51 -07:00
parent 52abeb002f
commit f25074409d

View file

@ -1,7 +1,7 @@
////////////////////////////////////////////////////////
// Use the cool library //
// git://github.com/voodootikigod/node-serialport.git //
// to reset an arduino . //
// to send break condition. //
////////////////////////////////////////////////////////
var com = require("serialport");
@ -28,9 +28,9 @@ function asserting() {
function clear() {
console.log('clearing');
serialPort.set({br:false}, function(err, something) {
serialPort.set({brk:false}, function(err, something) {
console.log('clear');
done();
setTimeout(done, 5000);
});
}