Przeglądaj źródła

freertos: Fix SMP build warning in xTaskCreateStaticPinnedToCore

Darian Leung 3 lat temu
rodzic
commit
63d15957d2
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      components/freertos/FreeRTOS-Kernel-SMP/tasks.c

+ 1 - 1
components/freertos/FreeRTOS-Kernel-SMP/tasks.c

@@ -6513,7 +6513,7 @@ TaskHandle_t xTaskCreateStaticPinnedToCore( TaskFunction_t pxTaskCode,
                                             StaticTask_t * const pxTaskBuffer,
                                             const BaseType_t xCoreID)
 {
-    BaseType_t ret;
+    TaskHandle_t ret;
     #if ( ( configUSE_CORE_AFFINITY == 1 ) && ( configNUM_CORES > 1 ) )
         {
             // Convert xCoreID into an affinity mask