Skip to content

Commit

Permalink
Fix undefined duration to calls
Browse files Browse the repository at this point in the history
  • Loading branch information
programmarchy committed Dec 13, 2013
1 parent 0a00029 commit d6f82c9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/drain.js
@@ -1,8 +1,8 @@
var SerialPort = require("serialport").SerialPort;

var sp = new SerialPort("/dev/cu.Cubelet-RGB", {
baudrate: 38400
});
baudrate: 38400
});

sp.on('open',function() {
sp.on('data', function(data) {
Expand Down Expand Up @@ -39,7 +39,7 @@ sp.on('open',function() {
};

// Stuff starts happening here
writeThenDrainThenWait();
//writeThenWait();
writeThenDrainThenWait(1000);
//writeThenWait(1000);

});
});

0 comments on commit d6f82c9

Please sign in to comment.