mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-25 17:52:36 +00:00
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:

committed by
Angus Gratton

parent
a39e8e5de9
commit
2c793cef06
@@ -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);
|
||||
|
Reference in New Issue
Block a user