From 42451adcb2a2fc43ce7bfbecdb1da0e80f51d3f9 Mon Sep 17 00:00:00 2001 From: Robert Giseburt Date: Tue, 1 Oct 2013 09:42:57 -0500 Subject: [PATCH] Comment out extra logging. --- serialport.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/serialport.js b/serialport.js index 82f807b..8793e9e 100644 --- a/serialport.js +++ b/serialport.js @@ -148,7 +148,7 @@ function SerialPort (path, options, openImmediately) { // }; options.errorCallback = function (err) { - console.log("sp err:", JSON.stringify(err)); + // console.log("sp err:", JSON.stringify(err)); self.emit('error', {spErr: err}); }; options.disconnectedCallback = function () { @@ -243,7 +243,7 @@ if (process.platform !== 'win32') { SerialPort.prototype._read = function() { var self = this; - console.log(">>READ"); + // console.log(">>READ"); if (!self.readable || self.paused || self.reading) return; self.reading = true; @@ -280,7 +280,7 @@ if (process.platform !== 'win32') { // let's mark the ones we didn't need as available again. pool.used -= bytesRequested - bytesRead; - console.log(">>ACTUALLY READ: ", bytesRead); + // console.log(">>ACTUALLY READ: ", bytesRead); if (bytesRead === 0) { if (self.fd >= 0) @@ -303,7 +303,7 @@ if (process.platform !== 'win32') { } } - console.log(">>REQUEST READ: ", toRead); + // console.log(">>REQUEST READ: ", toRead); fs.read(self.fd, pool, pool.used, toRead, self.pos, function(err, bytesRead){ var readPool = pool; var bytesRequested = toRead;