summaryrefslogtreecommitdiff
path: root/nuttx/sched/sched_yield.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched/sched_yield.c')
-rw-r--r--nuttx/sched/sched_yield.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/sched/sched_yield.c b/nuttx/sched/sched_yield.c
index 9e4560ad1..79a8515ed 100644
--- a/nuttx/sched/sched_yield.c
+++ b/nuttx/sched/sched_yield.c
@@ -96,5 +96,5 @@ int sched_yield(void)
* be rescheduled behind any other tasks at the same priority.
*/
- return sched_settcbprio(rtcb, rtcb->sched_priority);
+ return sched_setpriority(rtcb, rtcb->sched_priority);
}