code sanitizations

This commit is contained in:
Klaus K Wilting committed 2018-07-17 13:51:41 +02:00
1 parent 7fdd4a72cd
commit 54a38c3ce7
3 files changed
+14 -2

No files matched your search

+2
View File
@@ -52,6 +52,7 @@ extern portMUX_TYPE timerMux;
#ifdef HAS_GPS
#include "gps.h"
/*
typedef struct {
uint32_t latitude;
uint32_t longitude;
@@ -60,6 +61,7 @@ typedef struct {
uint16_t altitude;
} gpsStatus_t;
extern gpsStatus_t gps_status; // struct for storing gps data
*/
#endif
#ifdef BLECOUNTER
+10 -1
View File
@@ -1,9 +1,18 @@
#ifndef gps_H
#define gps_H
#include <TinyGPS++.h>
#include <TinyGPS++.h> // library for parsing NMEA data
typedef struct {
uint32_t latitude;
uint32_t longitude;
uint8_t satellites;
uint16_t hdop;
uint16_t altitude;
} gpsStatus_t;
extern TinyGPSPlus gps; // Make TinyGPS++ instance globally availabe
extern gpsStatus_t gps_status; // Make struct for storing gps data globally available
void gps_read(void);
void gps_loop(void *pvParameters);