From: Angus Gratton Date: Wed, 12 Jul 2017 03:10:11 +0000 (+0800) Subject: pvPortMalloc: Fix regression when changing to new heap implementation X-Git-Tag: v3.1-dev~478^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d601bedb85a13fbc20fc5fd4f2a921959ebadf5a;p=esp-idf pvPortMalloc: Fix regression when changing to new heap implementation --- 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 )