From d6ad155319804a7854be0e2741700d2c03ed8ff8 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 18 Jul 2022 19:10:36 +0800 Subject: [PATCH 1/2] remove the unnecessary header file inclusion Signed-off-by: Xiang Xiao --- example.c | 1 - minmea.c | 1 - minmea.h | 2 -- tests.c | 1 - 4 files changed, 5 deletions(-) diff --git a/example.c b/example.c index 14961c3..53ace67 100644 --- a/example.c +++ b/example.c @@ -8,7 +8,6 @@ #include #include -#include #include "minmea.h" diff --git a/minmea.c b/minmea.c index e43ee99..b08a995 100644 --- a/minmea.c +++ b/minmea.c @@ -12,7 +12,6 @@ #include #include #include -#include #define boolstr(s) ((s) ? "true" : "false") diff --git a/minmea.h b/minmea.h index 033a34d..bf04bd4 100644 --- a/minmea.h +++ b/minmea.h @@ -13,10 +13,8 @@ extern "C" { #endif -#include #include #include -#include #include #include #ifdef MINMEA_INCLUDE_COMPAT diff --git a/tests.c b/tests.c index 8e135e0..6b83e80 100644 --- a/tests.c +++ b/tests.c @@ -11,7 +11,6 @@ #include #include -#include #include #include "minmea.h" From 9ae3e509476c303f860f40ffd5259f6c50ac0ed8 Mon Sep 17 00:00:00 2001 From: Kosma Moczek Date: Thu, 4 Aug 2022 11:56:24 +0100 Subject: [PATCH 2/2] minmea.h: fix comment for minmea_scan() --- minmea.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/minmea.h b/minmea.h index bf04bd4..967e7b1 100644 --- a/minmea.h +++ b/minmea.h @@ -199,11 +199,14 @@ enum minmea_sentence_id minmea_sentence_id(const char *sentence, bool strict); * Scanf-like processor for NMEA sentences. Supports the following formats: * c - single character (char *) * d - direction, returned as 1/-1, default 0 (int *) - * f - fractional, returned as value + scale (int *, int *) + * f - fractional, returned as value + scale (struct minmea_float *) * i - decimal, default zero (int *) * s - string (char *) * t - talker identifier and type (char *) - * T - date/time stamp (int *, int *, int *) + * D - date (struct minmea_date *) + * T - time stamp (struct minmea_time *) + * _ - ignore this field + * ; - following fields are optional * Returns true on success. See library source code for details. */ bool minmea_scan(const char *sentence, const char *format, ...);