Skip to content

Commit

Permalink
Merge pull request #40 from anissen/patch-1
Browse files Browse the repository at this point in the history
Add support for AIVDO messages
  • Loading branch information
fulup-bzh authored Mar 26, 2021
2 parents 740d0d5 + 132b117 commit aa43af0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encoder/lib/GG-AisEncode.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ function AisEncode (msg) {
// this.fragid = nmea[3]; // fragment sequential index for multipart message
// this.pading = nmea[6].split ('*')[0];
var nmea=[];
nmea [0] = '!AIVDM'; // ! is added after checksum
nmea [0] = (msg.own === true ? '!AIVDO' : '!AIVDM'); // ! is added after checksum
nmea [1] = '1'; // ignore multipart extention messages
nmea [2] = '1';
nmea [3] = '';
Expand Down

0 comments on commit aa43af0

Please sign in to comment.