This commit is contained in:
2021-02-08 12:30:59 +01:00
parent ddc62e7e29
commit d9f2904cef

View File

@ -178,8 +178,9 @@ static void wizSNTPHandler(void *handle) {
}
}
uint32_t tryAgainIn = (success) ? 60 * 1000 : 1000;
schAdd(wizSNTPHandler, NULL, tryAgainIn, 0);
uint8_t tryAgainIn = (success) ? 60 : 1;
schAdd(wizSNTPHandler, NULL, tryAgainIn * 1000, 0);
coloredMsg(LOG_BLUE, "wizsh, next sntp request in %d seconds", tryAgainIn);
}
static void wizSecondsHandler(void *handle) {