Andrew Boyson / net

Dependents:   oldheating gps motorhome heating

udp/ntp/ntpclient.c

Committer:
andrewboyson
Date:
2019-01-22
Revision:
113:904b40231907
Parent:
112:f8694d0b8858
Child:
139:1f3641abc07f

File content as of revision 113:904b40231907:

#include <stdbool.h>

#include "ntpclient.h"
#include "clkgov.h"

bool NtpClientTrace   = false;

void NtpClientTimeUpdateSuccessful()
{
    NtpClientQueryStartInterval(NTP_QUERY_INTERVAL_NORMAL);
    ClkGovIsReceivingTime = true;
}

void NtpClientInit()
{
    NtpClientQueryStartInterval(NTP_QUERY_INTERVAL_INITIAL);
    ClkGovIsReceivingTime = false;
}