This commit is contained in:
2021-02-08 11:08:15 +01:00
parent a625004729
commit 31962fc8f0
4 changed files with 14 additions and 5 deletions

View File

@ -140,7 +140,7 @@ static void wizSNTPHandler(void *handle) {
coloredMsg(LOG_BLUE, "wizsh, about to call SNTP");
uint8_t ntpServer[4];
if (wizDnsQuery(NTP_SERVER, ntpServer)) {
if (wizDnsQuery(config->ntpServer, ntpServer)) {
SNTP_init(SNTP_SOCK, ntpServer, 0, sntpBuffer);
bool updated = false;
for (uint8_t i = 0; i < 16; i++) {