Andrew Boyson / clock

Dependents:   oldheating gps motorhome heating

Revision:
22:df0b906bda26
Parent:
18:207dd1474cd9
Child:
26:0421132e6eaf
--- a/sync.c	Fri Jan 19 18:38:15 2018 +0000
+++ b/sync.c	Fri Jan 19 19:59:43 2018 +0000
@@ -81,7 +81,7 @@
     //Get the time at the time of the interrupt
     int64_t thisIntClock;
     int64_t thisAbsClock;
-    TickRetrieveSnapshot(&thisIntClock, &thisAbsClock);
+    TickGetTimesFromSnapshot(&thisIntClock, &thisAbsClock);
 
     //Calulate the time error
     int64_t absDiff = thisAbsClock - thisExtClock;
@@ -114,6 +114,6 @@
     lastIntClock = thisIntClock;
     lastExtClock = thisExtClock;
 }
-void SyncPpsI(          ) { TickSaveSnapshotI(); }
+void SyncPpsI(          ) { TickSaveSnapshot(); }
 void SyncPpsN(time_t t  ) { int64_t ns = t * ONE_BILLION; sync(ns); }
-void SyncNs  (int64_t ns) { TickSaveSnapshotI();          sync(ns); }
+void SyncNs  (int64_t ns) { TickSaveSnapshot();           sync(ns); }