Explorar o código

pvPortMalloc: Fix regression when changing to new heap implementation

Angus Gratton %!s(int64=8) %!d(string=hai) anos
pai
achega
d601bedb85
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 )
 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 )
 void vPortFree( void *pv )