gpstimesync() deleted; paxcounter.conf: Timesync enabled
This commit is contained in:
1 parent
3285eed0fa
commit
f4c29f3137
4 files changed
+3
-17
No files matched your search
+2
-2
@@ -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
|
||||
@@ -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
|
||||
Reference in new issue
Block a user