Skip to content

Commit

Permalink
set the read position to null to force reading from the current position
Browse files Browse the repository at this point in the history
  • Loading branch information
joeferner committed Dec 3, 2013
1 parent 6f44a12 commit 82397f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serialport.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ function SerialPortFactory() {
// console.log(self.path + ' >> POOL OFFSET: ', self.pool.used);

// console.log(">>REQUEST READ: ", toRead);
fs.read(self.fd, self.pool, self.pool.used, toRead, 0, function(err, bytesRead){
fs.read(self.fd, self.pool, self.pool.used, toRead, null, function(err, bytesRead){
var readPool = self.pool;
var bytesRequested = toRead;
afterRead(err, bytesRead, readPool, bytesRequested);}
Expand Down

0 comments on commit 82397f5

Please sign in to comment.