From f25074409dd0315be7a4b4faac9616cd63eb867d Mon Sep 17 00:00:00 2001 From: Jacob Rosenthal Date: Sun, 1 Mar 2015 19:00:51 -0700 Subject: [PATCH] break mispelled and put a timeout after clear break too --- examples/break.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); }); }