location-gps-nmea: Fix handling of multi-sentence NMEA messages
Fixes the regexp in check_append_or_replace() to accept 1. more multi-sentence NMEA messages (ALM, GSV, RTE, SFI) 2. multi-sentence NMEA messages from all talkers, not just GPS (i.e. GPGSV, GLGSV, GAGSV etc.)
This commit is contained in:

committed by
Teemu Ikonen

parent
5af93dbfee
commit
d6dafe5cb4
@@ -52,7 +52,7 @@ check_append_or_replace (MMLocationGpsNmea *self,
|
||||
GMatchInfo *match_info = NULL;
|
||||
|
||||
if (G_UNLIKELY (!self->priv->sequence_regex))
|
||||
self->priv->sequence_regex = g_regex_new ("\\$GPGSV,(\\d),(\\d).*",
|
||||
self->priv->sequence_regex = g_regex_new ("\\$..(?:ALM|GSV|RTE|SFI),(\\d),(\\d).*",
|
||||
G_REGEX_RAW | G_REGEX_OPTIMIZE,
|
||||
0,
|
||||
NULL);
|
||||
|
Reference in New Issue
Block a user