This commit is contained in:
2021-02-28 12:40:38 +01:00
parent 897e7039f2
commit 7154b0abc3

View File

@ -14,13 +14,11 @@ static t_configBlock *config;
static uint8_t sntpBuffer[MAX_SNTP_BUF_SIZE];
const uint64_t UNIX_NTP_EPOCH_DIFF = 2208988800;
static const uint64_t UNIX_NTP_EPOCH_DIFF = 2208988800;
extern const uint8_t SNTP_SOCK;
static uint64_t seconds;
uint64_t networkSntpQuery() {
uint64_t seconds = 0;
void networkSntpEngine(void *handle) {
if (isNetworkAvailable()) {
coloredMsg(LOG_BLUE, "wizsq, about to call SNTP");
@ -48,10 +46,12 @@ uint64_t networkSntpQuery() {
coloredMsg(LOG_BLUE, "wizsq, error when querying ntp server name");
}
}
return seconds;
}
uint64_t networkSntpQuery() {
networkSntpEngine(NULL);
return seconds;
}
extern uint8_t SINK_SOCK;