diff options
-rw-r--r-- | libmm-common/mm-location-gps-nmea.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libmm-common/mm-location-gps-nmea.c b/libmm-common/mm-location-gps-nmea.c index 7ef478ff..b7f565a4 100644 --- a/libmm-common/mm-location-gps-nmea.c +++ b/libmm-common/mm-location-gps-nmea.c @@ -82,6 +82,10 @@ location_gps_nmea_take_trace (MMLocationGpsNmea *self, if (previous) { gchar *sequence; + /* Skip the trace if we already have it there */ + if (strstr (previous, trace)) + return TRUE; + sequence = g_strdup_printf ("%s%s%s", previous, g_str_has_suffix (previous, "\r\n") ? "" : "\r\n", |