fix for Issue #238

This commit is contained in:
Adriano Raiano 2013-10-30 15:48:10 +01:00
parent 17a2634bb4
commit c81a9bd5f5

View file

@ -209,6 +209,9 @@ function SerialPortFactory() {
SerialPort.prototype.open = function (callback) {
var self = this;
this.paused = true;
this.readable = true;
this.reading = false;
factory.SerialPortBinding.open(this.path, this.options, function (err, fd) {
self.fd = fd;
if (err) {
@ -550,4 +553,4 @@ function SerialPortFactory() {
util.inherits(SerialPortFactory, EventEmitter);
module.exports = new SerialPortFactory();
module.exports = new SerialPortFactory();