Andrew Boyson / net

Dependents:   oldheating gps motorhome heating

udp/ntp/ntpclient.c

Committer:
andrewboyson
Date:
2019-04-08
Revision:
139:1f3641abc07f
Parent:
113:904b40231907

File content as of revision 139:1f3641abc07f:

#include <stdbool.h>

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

bool NtpClientTrace   = false;

uint64_t NtpClientQueryTime = 0;

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

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