Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/canboat/canboatjs
Browse files Browse the repository at this point in the history
  • Loading branch information
sbender9 committed Jan 16, 2020
2 parents 1bee1e1 + 6735d5d commit 018988a
Showing 1 changed file with 1 addition and 34 deletions.
35 changes: 1 addition & 34 deletions lib/ikonvert.js
Original file line number Diff line number Diff line change
@@ -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,,,,,,' ) {

0 comments on commit 018988a

Please sign in to comment.