🐛 not exist macro

pull/216/head
yehangyang 2022-03-03 11:59:22 +08:00
parent 075eb1c081
commit cab8fc55c2
1 changed files with 1 additions and 3 deletions

View File

@ -1,4 +1,5 @@
#include "who_trace.h" #include "who_trace.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
@ -13,9 +14,6 @@ static void task_trace(void *arg)
{ {
while (true) while (true)
{ {
if (CONFIG_FREERTOS_USE_TRACE_FACILITY == 0 && CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS == 0)
break;
int task_num = uxTaskGetNumberOfTasks(); int task_num = uxTaskGetNumberOfTasks();
char *buffer = (char *)malloc(task_num * 40 * sizeof(char)); char *buffer = (char *)malloc(task_num * 40 * sizeof(char));