From: John Crispin Date: Thu, 18 Aug 2016 08:46:16 +0000 (+0200) Subject: fix reading of speed X-Git-Url: http://git.archive.openwrt.org/?a=commitdiff_plain;ds=sidebyside;h=797e09b4a3f3003ae57f035ffb21336045707bf0;hp=6924497ce8fcf3b4b3ecac067bf7c503a628077b;p=project%2Fugps.git fix reading of speed Signed-off-by: John Crispin --- diff --git a/nmea.c b/nmea.c index fecdef8..9c4bde8 100644 --- a/nmea.c +++ b/nmea.c @@ -168,7 +168,7 @@ nmea_vtg_cb(void) if (!gps_valid) return; strncpy(course, nmea_params[1].str, sizeof(course)); - strncpy(speed, nmea_params[6].str, sizeof(speed)); + strncpy(speed, nmea_params[7].str, sizeof(speed)); DEBUG(4, "course: %s\n", course); DEBUG(4, "speed: %s\n", speed); }