Merge pull request #3977 from BernardXiong/fix_delay_until

[Kernel] fix the delay_until issue
This commit is contained in:
Bernard Xiong 2020-10-22 23:51:18 +08:00 committed by GitHub
commit 877921f10b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -569,7 +569,7 @@ rt_err_t rt_thread_delay_until(rt_tick_t *tick, rt_tick_t inc_tick)
if (rt_tick_get() - *tick < inc_tick)
{
*tick = rt_tick_get() - *tick + inc_tick;
*tick = *tick + inc_tick - rt_tick_get();
/* suspend thread */
rt_thread_suspend(thread);