mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
freertos: Fix loss of precision in pdTICKS_TO_MS
Closes https://github.com/espressif/esp-idf/pull/7856 Closes https://github.com/espressif/esp-idf/issues/7853 [darian@espressif.com: Updated commit message] Signed-off-by: Darian Leung <darian@espressif.com>
This commit is contained in:
parent
da6c5be6c1
commit
3764b03734
@ -42,7 +42,7 @@ definition here is not suitable for your application. */
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef pdTICKS_TO_MS
|
#ifndef pdTICKS_TO_MS
|
||||||
#define pdTICKS_TO_MS( xTicks ) ( ( uint32_t ) ( xTicks ) * 1000 / configTICK_RATE_HZ )
|
#define pdTICKS_TO_MS( xTicks ) ( ( TickType_t ) ( ( uint64_t ) ( xTicks ) * 1000 / configTICK_RATE_HZ ) )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user