diff --git a/examples/break.js b/examples/break.js index be93195..10f7b48 100644 --- a/examples/break.js +++ b/examples/break.js @@ -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); }); }