diff options
author | Teemu Ikonen <tpikonen@mailbox.org> | 2023-07-08 19:32:50 +0300 |
---|---|---|
committer | Teemu Ikonen <tpikonen@mailbox.org> | 2023-07-08 19:49:14 +0300 |
commit | 80c3d1e643c2dd8906adf11e9f36f4926de0dca5 (patch) | |
tree | eabe22532c51e8e047fdca29a9e81563a5c12ab8 | |
parent | 25356e2ada47e8f794ea42ac1ea4c6694a290603 (diff) |
location: Fix RMC status field check
-rw-r--r-- | src/gclue-location.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gclue-location.c b/src/gclue-location.c index 2eadf2b..e3f55fc 100644 --- a/src/gclue-location.c +++ b/src/gclue-location.c @@ -655,8 +655,9 @@ gclue_location_create_from_rmc (const char *rmc, } /* RMC sentence is invalid */ - if (g_strcmp0 (parts[3], "A") != 0) + if (g_strcmp0 (parts[2], "A") != 0) { return NULL; + } guint64 timestamp = parse_nmea_timestamp (parts[1]); gdouble lat = parse_coordinate_string (parts[3], parts[4]); |