summaryrefslogtreecommitdiffstats
path: root/app/msf.c
diff options
context:
space:
mode:
authorroot <root@lab.panaceas.james.local>2019-02-19 23:00:23 +0000
committerroot <root@lab.panaceas.james.local>2019-02-19 23:00:23 +0000
commit971cc458aea21832a20b1b087185659d8e9ec2b3 (patch)
treef0cf4843a1b71c5860392c17ccc86a963d53b4e3 /app/msf.c
parent379b0ec3e5eacdde822966c84062bea41da7ae89 (diff)
downloadclock-971cc458aea21832a20b1b087185659d8e9ec2b3.tar.gz
clock-971cc458aea21832a20b1b087185659d8e9ec2b3.tar.bz2
clock-971cc458aea21832a20b1b087185659d8e9ec2b3.zip
fix offsets
Diffstat (limited to 'app/msf.c')
-rw-r--r--app/msf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/msf.c b/app/msf.c
index 69790ff..96c3afe 100644
--- a/app/msf.c
+++ b/app/msf.c
@@ -82,15 +82,14 @@ static void process_bits (uint64_t abs)
u.mday = bcd (bitsa, 30, 35);
u.hour = bcd (bitsa, 39, 44);
u.minute = bcd (bitsa, 45, 51);
- u.second = 59;
+ u.second = 0;
u.nanosecond = 0;
/* This is always valid a check_min_ident will fail for leap seconds*/
msf_time = time_utc_to_epoch (u);
- msf_time.s -= 59;
- // pll_set_offset (msf_time, abs);
+ pll_set_offset (msf_time, abs);
stats_stamp (u, abs);
dump_bits ("msfa", bitsa);