Andrew Boyson / net

Dependents:   oldheating gps motorhome heating

Revision:
124:6e558721ec1c
Parent:
123:44fea08759af
Child:
125:8c84daac38ab
--- a/udp/ntp/ntpserver.c	Thu Feb 21 12:53:06 2019 +0000
+++ b/udp/ntp/ntpserver.c	Fri Feb 22 08:41:47 2019 +0000
@@ -4,7 +4,7 @@
 #include "clkgov.h"
 #include "clktime.h"
 #include "clkutc.h"
-#include "clkntp.h"
+#include "ntptimestamp.h"
 #include "clkutc.h"
 #include "ntp.h"
 #include "action.h"
@@ -60,7 +60,7 @@
 }
 static uint64_t getRefNtp()
 {
-    return ClkTimeToNtpTimeStamp(ClkRefTai());
+    return NtpTimeStampFromClkTime(ClkRefTai());
 }
 int NtpServerRequest(void (*traceback)(void), struct NtpHeader* pHeaderRx, struct NtpHeader* pHeaderTx)
 {
@@ -75,7 +75,7 @@
     }
     
     uint64_t refNtp    = getRefNtp();
-    uint64_t nowNtp    = ClkTimeToNtpTimeStamp(ClkTimeGet());
+    uint64_t nowNtp    = NtpTimeStampFromClkTime(ClkTimeGet());
     int      stratum   = getStratum();
     char*    ident     = getIdent();
     int      li        = getLi();