Browse files

Reorder output statement to ensure that it has opened.

  • Loading branch information...
1 parent 92b7237 commit a607951b7dfa7399b99b7617eab13e94e2c54292 @voodootikigod voodootikigod committed Jan 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 examples/logger.js
View
2 examples/logger.js
@@ -12,10 +12,10 @@ var baudrate = process.argv[3];
var active = false;
function attemptLogging(fd, port, baudrate) {
- fs.write(fd, "\n------------------------------------------------------------\nOpening SerialPort: "+target+" at "+Date.now()+"\n------------------------------------------------------------\n");
var serialPort = new SerialPort.SerialPort(port, {
baudrate: baudrate
});
+ fs.write(fd, "\n------------------------------------------------------------\nOpening SerialPort: "+target+" at "+Date.now()+"\n------------------------------------------------------------\n");
serialPort.on("data", function (data) {
fs.write(fd, data.toString());
});

0 comments on commit a607951

Please sign in to comment.