diff options
author | qctecmdr <qctecmdr@localhost> | 2019-06-07 15:35:28 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-06-07 15:35:28 -0700 |
commit | d17a81974befca48f037e935b1e5dc8754df347a (patch) | |
tree | 623e884deb5b29e9f0a22e1ecd09edb7bc19e329 /utils | |
parent | 0677be4e4626d05880180f74bc97bbc357ff4663 (diff) | |
parent | 1e4aefd8b6244ada0238b8fe645345ff297cc32a (diff) | |
download | gps-d17a81974befca48f037e935b1e5dc8754df347a.tar.gz |
Merge "modify DTM talker id"
Diffstat (limited to 'utils')
-rw-r--r-- | utils/loc_nmea.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/loc_nmea.cpp b/utils/loc_nmea.cpp index 45b4f06..abcf5b7 100644 --- a/utils/loc_nmea.cpp +++ b/utils/loc_nmea.cpp @@ -792,6 +792,7 @@ SIDE EFFECTS ===========================================================================*/ static void loc_nmea_generate_DTM(const LocLla &ref_lla, const LocLla &local_lla, + char *talker, char *sentence, int bufSize) { @@ -828,7 +829,7 @@ static void loc_nmea_generate_DTM(const LocLla &ref_lla, default: break; } - length = snprintf(pMarker , lengthRemaining , "$GPDTM,%s,," , local_datum); + length = snprintf(pMarker , lengthRemaining , "$%sDTM,%s,," , talker, local_datum); if (length < 0 || length >= lengthRemaining) { LOC_LOGE("NMEA Error in string formatting"); return; @@ -1226,7 +1227,7 @@ void loc_nmea_generate_pos(const UlpLocation &location, // ------------------- // ------$--DTM------- // ------------------- - loc_nmea_generate_DTM(ref_lla, local_lla, sentence_DTM, sizeof(sentence_DTM)); + loc_nmea_generate_DTM(ref_lla, local_lla, talker, sentence_DTM, sizeof(sentence_DTM)); // ------------------- // ------$--RMC------- |