Commit b22469ca authored by Tom Calvo's avatar Tom Calvo
Browse files

add chrome support when checks the serial port connection.

parent 739da69d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -85,8 +85,8 @@ module.exports = function(serialPort){
      if(this._current) return;
      if(!this._queue.length) return;   

      // if the serialport is not open yet.
      if(!serialPort.fd){
      // if the serialport is not open yet. Check on node && chrome.
      if(!serialPort.fd && !serialPort.connectionId){
        var z = this;
        if(!this.boundOpen) serialPort.once('open',function(){
          z._send();