From 21eb903b0bad38454c7bf7df21e19e8999546255 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 6 Feb 2021 07:30:22 +0000 Subject: [PATCH] Fixed error introduced with queue changes. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14030 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/rt/src/chthreads.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os/rt/src/chthreads.c b/os/rt/src/chthreads.c index 94862186b..7ca8c6f91 100644 --- a/os/rt/src/chthreads.c +++ b/os/rt/src/chthreads.c @@ -617,8 +617,8 @@ tprio_t chThdSetPriority(tprio_t newprio) { } currtp->realprio = newprio; #else - oldprio = currtp->prio; - currtp->prio = newprio; + oldprio = currtp->hdr.pqueue.prio; + currtp->hdr.pqueue.prio = newprio; #endif chSchRescheduleS(); chSysUnlock();