mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-18 19:43:17 +03:00
pdMS_TO_TICKS() multiplied in TickType_t, so xTimeInMs * configTICK_RATE_HZ wrapped at 32 bits. With CONFIG_FREERTOS_HZ=1000, any value above 4294967 ms gave a wrong tick count, e.g. pdMS_TO_TICKS(4294968) returned 0. Multiply in uint64_t, as upstream FreeRTOS-Kernel does since V11.0.0 (FreeRTOS/FreeRTOS-Kernel#866) and as the FreeRTOS-Kernel-SMP copy already does. Closes https://github.com/espressif/esp-idf/issues/19242