diff --git a/lib/ikonvert.js b/lib/ikonvert.js index 2be985c..62fb317 100644 --- a/lib/ikonvert.js +++ b/lib/ikonvert.js @@ -211,40 +211,7 @@ iKonvertStream.prototype._transform = function (chunk, encoding, done) { } else { this.push(line) } - - - /* - if ( !this.didSetRaw ) { - this.setProviderStatus('Initializing...') - this.sendString('$PDGY,N2NET_OFFLINE') - this.sendString('$PDGY,N2NET_MODE,15') - this.setup() - this.didSetRaw = true - } else if ( !this.isSetup ) { - debug(line) - if ( line.startsWith('$PDGY,ACK,TX_LIST') ) { - this.sendString('$PDGY,N2NET_INIT,ALL') - } else if ( line.startsWith('$PDGY,ACK,N2NET_INIT,ALL') || line.startsWith('$PDGY,NAK,1,ALREADY_INITIALISED') ) { - this.cansend = true; - this.isSetup = true; - this.options.app.emit('nmea2000OutAvailable') - this.setProviderStatus('Connected') - } - } else { - this.push(line) - } - */ - - - /*else if ( !this.isSetup ) { - this.setup() - this.isSetup = true - } - if ( line.startsWith('$PDGY') ) { - - } else if ( this.isSetup ) { - this.push(line) - }*/ + } else { if ( line.startsWith('$PDGY') ) { if ( line === '$PDGY,000000,,,,,,' ) {