A GPS disciplined clock

Dependencies:   net lpc1768 crypto clock web log

Revision:
31:1a1d20352fca
Parent:
24:6f3e53833e62
Child:
35:a535b65203a9
--- a/settings/settings.c	Sun Jan 20 20:34:00 2019 +0000
+++ b/settings/settings.c	Fri Jan 25 17:42:25 2019 +0000
@@ -11,6 +11,7 @@
 #include   "dnsreply.h"
 #include  "dnsserver.h"
 #include        "ntp.h"
+#include  "ntpclient.h"
 #include       "dhcp.h"
 #include         "ns.h"
 #include        "nr4.h"
@@ -112,9 +113,9 @@
 void ChgTraceHttp      () {      HttpTrace        =      !HttpTrace       ; setBit(iHttp,            HttpTrace       ); }
 void ChgTraceTftp      () {      TftpTrace        =      !TftpTrace       ; setBit(iTftp,            TftpTrace       ); }
 
-void ChgDnsSendRequestsViaIp4()  {  DnsSendRequestsViaIp4 =  !DnsSendRequestsViaIp4; }
-void ChgNtpSendRequestsViaIp4()  {  NtpSendRequestsViaIp4 =  !NtpSendRequestsViaIp4; }
-void ChgTftpSendRequestsViaIp4() { TftpSendRequestsViaIp4 = !TftpSendRequestsViaIp4; }
+void ChgDnsSendRequestsViaIp4()  {             DnsSendRequestsViaIp4 =             !DnsSendRequestsViaIp4; }
+void ChgNtpSendRequestsViaIp4()  {  NtpClientQuerySendRequestsViaIp4 =  !NtpClientQuerySendRequestsViaIp4; }
+void ChgTftpSendRequestsViaIp4() {            TftpSendRequestsViaIp4 =            !TftpSendRequestsViaIp4; }
 
 //Clock settings
 void SetClockSlewDivisor      (int  value) { ClkGovSlewDivisor       = value; }
@@ -139,9 +140,9 @@
     ClkGovSyncedHysterisPpb =     1000;
     ClkGovMaxOffsetSecs     =        3;
     
-     DnsSendRequestsViaIp4 = false;
-     NtpSendRequestsViaIp4 = false;
-    TftpSendRequestsViaIp4 = true;
+               DnsSendRequestsViaIp4 = false;
+    NtpClientQuerySendRequestsViaIp4 = false;
+              TftpSendRequestsViaIp4 = true;
     
     NetTraceHost[1] =  ALYEAR & 0xFF;               //Little endian so low byte
     NetTraceHost[0] = (ALMON << 4) + (ALYEAR >> 8); //high byte