From c4a5a01d66c6802c8657439b7265e7f8190d5996 Mon Sep 17 00:00:00 2001 From: gdpinchina Date: Wed, 5 Sep 2018 08:47:49 +0800 Subject: [PATCH] modify dgps_age type change dgps_age type from int to struct minmea_float. example: $--GGA,hhmmss.ss,llll.ll,a,yyyyy.yy,a,x,xx,x.x,x.x,M,x.x,M,x.x,xxxx*hh --- minmea.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minmea.c b/minmea.c index 43d6926..32f7881 100644 --- a/minmea.c +++ b/minmea.c @@ -415,7 +415,7 @@ bool minmea_parse_gga(struct minmea_sentence_gga *frame, const char *sentence) int latitude_direction; int longitude_direction; - if (!minmea_scan(sentence, "tTfdfdiiffcfci_", + if (!minmea_scan(sentence, "tTfdfdiiffcfcf_", type, &frame->time, &frame->latitude, &latitude_direction,