Update NMEA SV numbers
for GPGSV and GLGSV, the SV number should be seperate for each. CRs-Fixed: 570728 Change-Id: Ica350094d7220f1ec33cf02686a541c4191afe1d
This commit is contained in:
parent
d32cd2946d
commit
64cecc6a31
1 changed files with 2 additions and 2 deletions
|
@ -653,7 +653,7 @@ void loc_eng_nmea_generate_sv(loc_eng_data_s_type *loc_eng_data_p,
|
||||||
lengthRemaining = sizeof(sentence);
|
lengthRemaining = sizeof(sentence);
|
||||||
|
|
||||||
length = snprintf(pMarker, lengthRemaining, "$GPGSV,%d,%d,%02d",
|
length = snprintf(pMarker, lengthRemaining, "$GPGSV,%d,%d,%02d",
|
||||||
sentenceCount, sentenceNumber, svCount);
|
sentenceCount, sentenceNumber, gpsCount);
|
||||||
|
|
||||||
if (length < 0 || length >= lengthRemaining)
|
if (length < 0 || length >= lengthRemaining)
|
||||||
{
|
{
|
||||||
|
@ -731,7 +731,7 @@ void loc_eng_nmea_generate_sv(loc_eng_data_s_type *loc_eng_data_p,
|
||||||
lengthRemaining = sizeof(sentence);
|
lengthRemaining = sizeof(sentence);
|
||||||
|
|
||||||
length = snprintf(pMarker, lengthRemaining, "$GLGSV,%d,%d,%02d",
|
length = snprintf(pMarker, lengthRemaining, "$GLGSV,%d,%d,%02d",
|
||||||
sentenceCount, sentenceNumber, svCount);
|
sentenceCount, sentenceNumber, glnCount);
|
||||||
|
|
||||||
if (length < 0 || length >= lengthRemaining)
|
if (length < 0 || length >= lengthRemaining)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue