From 3cfd1b5ec7f3665fb1a0247881751fd4b0cf287b Mon Sep 17 00:00:00 2001 From: Aleksandr Vyhovanec Date: Wed, 24 Aug 2016 09:55:23 -0600 Subject: [PATCH] apps/gpsutils: Fix an error min minmea --- gpsutils/minmea/minmea.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/gpsutils/minmea/minmea.c b/gpsutils/minmea/minmea.c index 5558be626..772192c4a 100644 --- a/gpsutils/minmea/minmea.c +++ b/gpsutils/minmea/minmea.c @@ -197,16 +197,16 @@ bool minmea_scan(FAR const char *sentence, FAR const char *format, ...) while (minmea_isfield(*sentence)) \ { \ sentence++; \ - /* Make sure there is a field there. */ \ - if (*sentence == ',') \ - { \ - sentence++; \ - field = sentence; \ - } \ - else \ - { \ - field = NULL; \ - } \ + } \ + /* Make sure there is a field there. */ \ + if (*sentence == ',') \ + { \ + sentence++; \ + field = sentence; \ + } \ + else \ + { \ + field = NULL; \ } \ } \ while (0)