From d601bedb85a13fbc20fc5fd4f2a921959ebadf5a Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Wed, 12 Jul 2017 11:10:11 +0800 Subject: [PATCH] pvPortMalloc: Fix regression when changing to new heap implementation --- components/freertos/port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/freertos/port.c b/components/freertos/port.c index 942f294bde..df298fc4ac 100644 --- a/components/freertos/port.c +++ b/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 )