Comparing version 1.0.1 to 1.0.2
@@ -555,4 +555,6 @@ /* | ||
} | ||
var hex = sum.toString(16).toUpperCase(); | ||
if (hex.length === 1) hex = '0' + hex; //single digit hex needs preceding 0, '0F' | ||
return (checksum === sum.toString(16).toUpperCase()); | ||
return (checksum === hex); | ||
} | ||
@@ -559,0 +561,0 @@ } |
{ | ||
"name": "ggencoder", | ||
"description": "GEOGATE-geojson handles AIS/NMEA encoding/decoding for GEOgate GPS/AIS/GTS framework", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Fulup Ar Foll", |
115406
1873