From 22fda21eae92e8a3db344a519fa30012eddcba39 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 14 Jun 2011 20:45:48 +0200 Subject: [PATCH] Don't call driver read_freq in LCL_ReadAbsoluteFrequency --- local.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/local.c b/local.c index 7619697..12fecf4 100644 --- a/local.c +++ b/local.c @@ -358,14 +358,14 @@ LCL_GetOffsetCorrection(struct timeval *raw, double *correction, double *err) } /* ================================================== */ -/* This is just a simple passthrough of the system specific routine */ +/* Return current frequency */ double LCL_ReadAbsoluteFrequency(void) { double freq; - freq = (*drv_read_freq)(); + freq = current_freq_ppm; /* Undo temperature compensation */ if (temp_comp_ppm != 0.0) {