aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/sysmobts-calib/sysmobts-calib.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/sysmobts-calib/sysmobts-calib.c b/contrib/sysmobts-calib/sysmobts-calib.c
index 053032d5..a111d1d5 100644
--- a/contrib/sysmobts-calib/sysmobts-calib.c
+++ b/contrib/sysmobts-calib/sysmobts-calib.c
@@ -318,6 +318,16 @@ static int calib_get_clock_error(void)
return -1;
}
+ /*
+ * Empiric gps error determination. With revE and firmware v3.3
+ * the clock error for TCXO to GPS appears to have a different
+ * sign. The device in question doesn't have a networklisten mode
+ * so it is impossible to verify that this only applies to GPS.
+ */
+ if (source == SuperFemto_ClkSrcId_GpsPps)
+ clkErr *= -1;
+
+
/* this is an absolute clock error */
printf("The calibration value is: %d\n", clkErr);
return 0;