Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1 from fphillips/master
Browse files Browse the repository at this point in the history
misses first of each group of four
  • Loading branch information
jamesp committed Feb 24, 2012
2 parents 493a4d0 + cb89fea commit d97d74a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nmea.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ exports.parsers = {
// $GPGSV,3,1,12, 05,58,322,36, 02,55,032,, 26,50,173,, 04,31,085,
var numRecords = (fields.length - 4) / 4,
sats = [];
for (var i=1; i < numRecords; i++) {
for (var i=0; i < numRecords; i++) {
var offset = i * 4 + 4;
sats.push({id: fields[offset],
elevationDeg: +fields[offset+1],
Expand Down

0 comments on commit d97d74a

Please sign in to comment.