mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-26 02:47:17 +00:00
fix for Issue #238
This commit is contained in:
parent
17a2634bb4
commit
c81a9bd5f5
1 changed files with 4 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue