gps: Fix GPS example application

This commit is contained in:
Alan Carvalho de Assis 2022-11-12 12:59:23 -03:00 committed by Xiang Xiao
parent 89ec8cbf96
commit d03b87b1bc
2 changed files with 9 additions and 3 deletions

View File

@ -28,7 +28,7 @@ STACKSIZE = $(CONFIG_EXAMPLES_GPS_STACKSIZE)
MODULE = $(CONFIG_EXAMPLES_GPS) MODULE = $(CONFIG_EXAMPLES_GPS)
# GPS Example # GPS Example
CFLAGS += -I$(APPDIR)$(DELIM)gpsutils$(DELIM)minmea
MAINSRC = gps_main.c MAINSRC = gps_main.c
include $(APPDIR)/Application.mk include $(APPDIR)/Application.mk

View File

@ -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 * Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with * contributor license agreements. See the NOTICE file distributed with
@ -29,7 +29,13 @@
#include <wchar.h> #include <wchar.h>
#include <syslog.h> #include <syslog.h>
#include "gpsutils/minmea.h" #include "minmea/minmea.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
#define MINMEA_MAX_LENGTH 256
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions