Fixed error introduced with queue changes.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14030 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2021-02-06 07:30:22 +00:00
parent fd683a2343
commit 21eb903b0b
1 changed files with 2 additions and 2 deletions

View File

@ -617,8 +617,8 @@ tprio_t chThdSetPriority(tprio_t newprio) {
} }
currtp->realprio = newprio; currtp->realprio = newprio;
#else #else
oldprio = currtp->prio; oldprio = currtp->hdr.pqueue.prio;
currtp->prio = newprio; currtp->hdr.pqueue.prio = newprio;
#endif #endif
chSchRescheduleS(); chSchRescheduleS();
chSysUnlock(); chSysUnlock();