1000 instead of 10

This commit is contained in:
2021-02-27 22:57:12 +01:00
parent 13a67dc660
commit 3c6ddcb99b

View File

@ -55,7 +55,7 @@ static void networkSntpEngine(void *handle) {
socket(SNTP_SOCK, Sn_MR_UDP, NTP_PORT, 0);
retryCount = 0;
sntpState = SNTP_STATE_SEND;
schAdd(networkSntpEngine, NULL, 10, 0);
schAdd(networkSntpEngine, NULL, 1000, 0);
break;
case SNTP_STATE_SEND:
coloredMsg(LOG_BLUE, "nes, about to send");
@ -72,7 +72,7 @@ static void networkSntpEngine(void *handle) {
sendto(SNTP_SOCK, (uint8_t*)&ntpMsg, sizeof(ntpMsg), ntpAddr, NTP_PORT);
coloredMsg(LOG_BLUE, "nes, sent");
sntpState = SNTP_STATE_RECV;
schAdd(networkSntpEngine, NULL, 10, 0);
schAdd(networkSntpEngine, NULL, 1000, 0);
}
} else {
coloredMsg(LOG_BLUE, "nes, socket in unexpected state: %d", sockState);