Commit 5024c5f4 authored by Ryan Day's avatar Ryan Day Committed by GitHub

Merge pull request #10 from tocalvo/patch-check-serialConnection-on-chromeextension

add chrome support when checks the serial port connection.
parents 739da69d b22469ca
......@@ -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