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

fix: luat_common_freertos里create_event_task的栈内存大小被放大到4倍了

Wendal Chen 2 лет назад
Родитель
Сommit
9e8fcf8282
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      components/rtos/freertos/luat_common_freertos.c

+ 1 - 1
components/rtos/freertos/luat_common_freertos.c

@@ -61,7 +61,7 @@ void *create_event_task(TaskFun_t task_fun, void *param, uint32_t stack_bytes, u
 	{
 		handle->queue = NULL;
 	}
-	if (pdPASS != xTaskCreate(task_fun, task_name, stack_bytes * 4, param, priority, &handle->handle))
+	if (pdPASS != xTaskCreate(task_fun, task_name, stack_bytes, param, priority, &handle->handle))
 	{
 		if (handle->queue)
 			vQueueDelete(handle->queue);