Skip to content

Commit

Permalink
fix a assignmet error
Browse files Browse the repository at this point in the history
  • Loading branch information
blta committed May 17, 2022
1 parent 6cccf8c commit 53f40d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -913,11 +913,11 @@ rt_err_t rt_thread_resume(rt_thread_t thread)
/* compare the priority with rt_current_priority*/
if(thread->current_priority < rt_current_priority)
{
result == RT_EOK;
result = RT_EOK;
}
else
{
result == RT_EBUSY;
result = RT_EBUSY;
}

/* enable interrupt */
Expand Down

0 comments on commit 53f40d1

Please sign in to comment.