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){
if(this._current) 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 && !serialPort.connectionId){
var z = this;
if(!this.boundOpen) serialPort.once('open',function(){
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