diff --git a/kernel/core/tos_sys.c b/kernel/core/tos_sys.c index 8dd8a0c4..20f09cfc 100644 --- a/kernel/core/tos_sys.c +++ b/kernel/core/tos_sys.c @@ -251,7 +251,7 @@ __STATIC__ void knl_idle_entry(void *arg) arg = arg; // make compiler happy while (K_TRUE) { -#if TOS_CFG_TASK_DYNAMIC_CREATE_EN > 0u +#if TOS_CFG_OBJ_DYNAMIC_CREATE_EN > 0u task_free_all(); #endif