Просмотр исходного кода

pvPortMalloc: Fix regression when changing to new heap implementation

Angus Gratton 8 лет назад
Родитель
Сommit
d601bedb85
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      components/freertos/port.c

+ 1 - 1
components/freertos/port.c

@@ -450,7 +450,7 @@ uint32_t xPortGetTickRateHz(void) {
 
 void *pvPortMalloc( size_t xWantedSize )
 {
-	return heap_caps_malloc( MALLOC_CAP_8BIT, xWantedSize);
+	return heap_caps_malloc(xWantedSize, MALLOC_CAP_8BIT);
 }
 
 void vPortFree( void *pv )