summaryrefslogtreecommitdiff
path: root/libloragw/src/loragw_gps.c
diff options
context:
space:
mode:
Diffstat (limited to 'libloragw/src/loragw_gps.c')
-rw-r--r--libloragw/src/loragw_gps.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libloragw/src/loragw_gps.c b/libloragw/src/loragw_gps.c
index 17bb3a1..329827e 100644
--- a/libloragw/src/loragw_gps.c
+++ b/libloragw/src/loragw_gps.c
@@ -625,7 +625,8 @@ int lgw_gps_sync(struct tref *ref, uint32_t count_us, struct timespec gps_time)
ref->count_us = count_us;
ref->utc.tv_sec = gps_time.tv_sec - timezone;
ref->utc.tv_nsec = gps_time.tv_nsec;
- ref->gps.tv_sec = gps_time.tv_sec;
+ // ref->gps.tv_sec = gps_time.tv_sec;
+ ref->gps.tv_sec = gps_time.tv_sec + 18 - 315964800;
ref->gps.tv_nsec = gps_time.tv_nsec;
ref->xtal_err = slope;
return LGW_GPS_SUCCESS;