Files
Renz Bagaporo 1050b0e598 fix(freertos): avoid pdMS_TO_TICKS overflow for large values
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
2026-10-15 14:59:04 +09:00
..