Update idle.c

This commit is contained in:
geniusgogo 2017-05-23 11:04:22 +08:00 committed by GitHub
parent 387bbcc44f
commit 05052127c3
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ static void rt_thread_idle_entry(void *parameter)
{
while (1)
{
#if defined(RT_USING_IDLE_HOOK) && (RT_USING_IDLE_HOOK == 1)
#ifdef RT_USING_IDLE_HOOK
if (rt_thread_idle_hook != RT_NULL)
{
rt_thread_idle_hook();