idf: Support a custom toolchain with time_t wide 64-bits

Allows resolving the Y2K38 problem.

Closes: IDF-350

Closes: https://github.com/espressif/esp-idf/issues/584
This commit is contained in:
Konstantin Kondrashov
2020-01-10 12:58:54 +08:00
committed by Angus Gratton
parent a39e8e5de9
commit 2c793cef06
15 changed files with 183 additions and 32 deletions

View File

@@ -104,7 +104,7 @@ void app_main(void)
while (sntp_get_sync_status() == SNTP_SYNC_STATUS_IN_PROGRESS) {
adjtime(NULL, &outdelta);
ESP_LOGI(TAG, "Waiting for adjusting time ... outdelta = %li sec: %li ms: %li us",
outdelta.tv_sec,
(long)outdelta.tv_sec,
outdelta.tv_usec/1000,
outdelta.tv_usec%1000);
vTaskDelay(2000 / portTICK_PERIOD_MS);