You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/11/12 17:45:49 UTC
[incubator-nuttx-apps] branch master updated: gps: Fix GPS example application
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new d03b87b1b gps: Fix GPS example application
d03b87b1b is described below
commit d03b87b1bc732f92532fd3a2a7810b63ee090e42
Author: Alan Carvalho de Assis <ac...@gmail.com>
AuthorDate: Sat Nov 12 12:59:23 2022 -0300
gps: Fix GPS example application
---
examples/gps/Makefile | 2 +-
examples/gps/gps_main.c | 10 ++++++++--
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/examples/gps/Makefile b/examples/gps/Makefile
index efac4f0ba..e39d4be8e 100644
--- a/examples/gps/Makefile
+++ b/examples/gps/Makefile
@@ -28,7 +28,7 @@ STACKSIZE = $(CONFIG_EXAMPLES_GPS_STACKSIZE)
MODULE = $(CONFIG_EXAMPLES_GPS)
# GPS Example
-
+CFLAGS += -I$(APPDIR)$(DELIM)gpsutils$(DELIM)minmea
MAINSRC = gps_main.c
include $(APPDIR)/Application.mk
diff --git a/examples/gps/gps_main.c b/examples/gps/gps_main.c
index 5db2f1189..9a76ba41a 100644
--- a/examples/gps/gps_main.c
+++ b/examples/gps/gps_main.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * apps/examples/hello/gps_main.c
+ * apps/examples/gps/gps_main.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
@@ -29,7 +29,13 @@
#include <wchar.h>
#include <syslog.h>
-#include "gpsutils/minmea.h"
+#include "minmea/minmea.h"
+
+/****************************************************************************
+ * Pre-processor Definitions
+ ****************************************************************************/
+
+#define MINMEA_MAX_LENGTH 256
/****************************************************************************
* Public Functions