diff --git a/include/gpsread.h b/include/gpsread.h index 7f432c47..f98e4d62 100644 --- a/include/gpsread.h +++ b/include/gpsread.h @@ -2,7 +2,7 @@ #define _GPSREAD_H #include // library for parsing NMEA data -#include +#include #ifdef GPS_I2C // Needed for reading from I2C Bus #include diff --git a/include/rtctime.h b/include/rtctime.h index b8ecd9cd..09c86492 100644 --- a/include/rtctime.h +++ b/include/rtctime.h @@ -27,6 +27,5 @@ int set_rtctime(RtcDateTime now); void sync_rtctime(void); time_t get_rtctime(void); float get_rtctemp(void); -time_t gpsTimeSync(void); #endif // _RTCTIME_H \ No newline at end of file diff --git a/src/paxcounter.conf b/src/paxcounter.conf index 41420cc8..e63b2d1c 100644 --- a/src/paxcounter.conf +++ b/src/paxcounter.conf @@ -82,8 +82,8 @@ #define RESPONSE_TIMEOUT_MS 60000 // firmware binary server connection timeout [milliseconds] // setting for syncing time of node -//#define TIME_SYNC_INTERVAL 60 // sync time each ... minutes with external source [default = 60], comment out means off -#define TIME_SYNC_INTERVAL_RTC 5 // sync time each ... minutes with RTC [default = 5], comment out means off +#define TIME_SYNC_INTERVAL 60 // sync time each ... minutes with external source [default = 60], comment out means off +#define TIME_SYNC_INTERVAL_RTC 5 // sync time each ... minutes with RTC [default = 5], comment out means off // LMIC settings // moved to src/lmic_config.h diff --git a/src/rtctime.cpp b/src/rtctime.cpp index 4fe5ca47..d826a5cf 100644 --- a/src/rtctime.cpp +++ b/src/rtctime.cpp @@ -124,17 +124,4 @@ float get_rtctemp(void) { return 0; } // get_rtc() -time_t gpsTimeSync(void) { -#ifdef HAS_GPS - tmElements_t tm; - tm.Second = gps.time.second(); - tm.Minute = gps.time.minute(); - tm.Hour = gps.time.hour(); - tm.Day = gps.date.day(); - tm.Month = gps.date.month(); - tm.Year = CalendarYrToTm(gps.date.year()); - return makeTime(tm); -#endif // HAS_GPS -} - #endif // HAS_RTC \ No newline at end of file