Bläddra i källkod

Merge branch 'bugfix/freertos_pd_ticks_to_ms_precision_v4.4' into 'release/v4.4'

Freertos: Fix loss of precision in pdTICKS_TO_MS (v4.4)

See merge request espressif/esp-idf!16673
Zim Kalinowski 4 år sedan
förälder
incheckning
eb13f8a61d
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      components/freertos/include/freertos/projdefs.h

+ 1 - 1
components/freertos/include/freertos/projdefs.h

@@ -41,7 +41,7 @@ typedef void (* TaskFunction_t)( void * );
 #endif
 #endif
 #ifdef ESP_PLATFORM
 #ifdef ESP_PLATFORM
 #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
 #endif // ESP_PLATFORM
 #endif // ESP_PLATFORM