Skip to content

Commit b14a140

Browse files
heyuanjie87Rbb666
authored andcommittedOct 21, 2024·
解决编译错误
1 parent 08888b6 commit b14a140

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/idle.c

+2
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ void rt_thread_idle_init(void)
175175
char idle_thread_name[RT_NAME_MAX];
176176
#endif /* RT_NAME_MAX > 0 */
177177

178+
#ifdef RT_USING_IDLE_HOOK
178179
rt_spin_lock_init(&_hook_spinlock);
180+
#endif
179181

180182
for (i = 0; i < _CPUS_NR; i++)
181183
{

0 commit comments

Comments
 (0)
Please sign in to comment.