summaryrefslogtreecommitdiffstats
path: root/app/pll.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/pll.c')
-rw-r--r--app/pll.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/app/pll.c b/app/pll.c
index 742aad0..56e8e21 100644
--- a/app/pll.c
+++ b/app/pll.c
@@ -19,6 +19,13 @@ int pll_valid = 0;
static int warming_up = WARM_UP;
+void pll_meh(void)
+{
+ printf (" %"PRId64" %"PRId64" %" PRId64 "\r\n",
+ pll_freq,offset,phase);
+
+}
+
static void modify_pll_freq (uint64_t now, int d)
{
@@ -50,6 +57,7 @@ void pll_dispatch (uint64_t edge)
return;
}
+
{
int diff, hf;
@@ -73,7 +81,7 @@ void pll_dispatch (uint64_t edge)
else if (out_of_lock <= JUMP_TICKS)
out_of_lock = 0;
-#if 0
+#if 1
printf ("PLL pd %.3f pll_freq %d phase %d\r\n", (float) f, (int) pll_freq, (int) phase);
#endif
@@ -106,6 +114,8 @@ void pll_set_offset (EPOCH epoch, uint64_t abs)
offset = epoch.s - abs;
pll_valid = 1;
+time_known=1;
+
}