This commit is contained in:
Wolfgang Hottgenroth 2021-02-08 12:30:59 +01:00
parent ddc62e7e29
commit d9f2904cef
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

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) {