Commit b22469ca authored by Tom Calvo's avatar Tom Calvo

add chrome support when checks the serial port connection.

parent 739da69d
...@@ -85,8 +85,8 @@ module.exports = function(serialPort){ ...@@ -85,8 +85,8 @@ module.exports = function(serialPort){
if(this._current) return; if(this._current) return;
if(!this._queue.length) return; if(!this._queue.length) return;
// if the serialport is not open yet. // if the serialport is not open yet. Check on node && chrome.
if(!serialPort.fd){ if(!serialPort.fd && !serialPort.connectionId){
var z = this; var z = this;
if(!this.boundOpen) serialPort.once('open',function(){ if(!this.boundOpen) serialPort.once('open',function(){
z._send(); z._send();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment