code sanitizations

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

View File

@ -11,7 +11,8 @@
; ---> SELECT TARGET PLATFORM HERE! <--- ; ---> SELECT TARGET PLATFORM HERE! <---
[platformio] [platformio]
env_default = generic env_default = lolin32lite, heltec, generic
;env_default = generic
;env_default = heltec ;env_default = heltec
;env_default = ttgov1 ;env_default = ttgov1
;env_default = ttgov2 ;env_default = ttgov2

View File

@ -52,6 +52,7 @@ extern portMUX_TYPE timerMux;
#ifdef HAS_GPS #ifdef HAS_GPS
#include "gps.h" #include "gps.h"
/*
typedef struct { typedef struct {
uint32_t latitude; uint32_t latitude;
uint32_t longitude; uint32_t longitude;
@ -60,6 +61,7 @@ typedef struct {
uint16_t altitude; uint16_t altitude;
} gpsStatus_t; } gpsStatus_t;
extern gpsStatus_t gps_status; // struct for storing gps data extern gpsStatus_t gps_status; // struct for storing gps data
*/
#endif #endif
#ifdef BLECOUNTER #ifdef BLECOUNTER

View File

@ -1,9 +1,18 @@
#ifndef gps_H #ifndef gps_H
#define 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 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_read(void);
void gps_loop(void *pvParameters); void gps_loop(void *pvParameters);