mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-02 04:39:01 +00:00
ostest/hrtimer: sync hrtimer ostest with latest hritmer update
sync hrtimer ostest with latest hritmer update Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
This commit is contained in:
parent
71561d2979
commit
ebe2dd57dd
1 changed files with 2 additions and 2 deletions
|
|
@ -223,7 +223,7 @@ static void * hrtimer_test_thread(void *arg)
|
|||
/* Cancel timer */
|
||||
|
||||
ret = hrtimer_cancel(&timer);
|
||||
HRTIMER_TEST(ret, OK);
|
||||
HRTIMER_TEST(ret >= 0, true);
|
||||
|
||||
/* Start timer with fixed period */
|
||||
|
||||
|
|
@ -241,7 +241,7 @@ static void * hrtimer_test_thread(void *arg)
|
|||
/* Cancel the timer synchronously */
|
||||
|
||||
ret = hrtimer_cancel_sync(&timer);
|
||||
HRTIMER_TEST(ret, OK);
|
||||
HRTIMER_TEST(ret >= 0, true);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue