kopia lustrzana https://github.com/espressif/esp-idf
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>pull/8001/head
rodzic
07f502410a
commit
b3e0c9213a
|
@ -41,7 +41,7 @@ typedef void (* TaskFunction_t)( void * );
|
|||
#endif
|
||||
#ifdef ESP_PLATFORM
|
||||
#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 // ESP_PLATFORM
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue