From cf52bdde13512e77a3d81ca5d59e58b25136a62b Mon Sep 17 00:00:00 2001 From: Harsh Sharma Date: Mon, 22 Nov 2021 10:01:50 -0600 Subject: lora gps issue hotfix --- libloragw/src/loragw_gps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libloragw/src') 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; -- cgit v1.2.3