]> granicus.if.org Git - esp-idf/commitdiff
pvPortMalloc: Fix regression when changing to new heap implementation
authorAngus Gratton <angus@espressif.com>
Wed, 12 Jul 2017 03:10:11 +0000 (11:10 +0800)
committerAngus Gratton <gus@projectgus.com>
Wed, 12 Jul 2017 03:10:11 +0000 (11:10 +0800)
components/freertos/port.c

index 942f294bdecf4744971892beb12a6d8ed96c2af7..df298fc4ac3199b9e3aa683cc0d73a6afda29185 100644 (file)
@@ -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 )