Build error on osThreadSetPriority

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
sjmneves
Posts: 1
Joined: Wed Apr 05, 2017 4:13 pm
Been thanked: 1 time

Build error on osThreadSetPriority

Post by sjmneves »

Hi,

With the fix #823 an issue appeared on osThreadSetPriority, more exactly on these lines of code:
"
Line 156 if ((tp->prio == tp->realprio) || ((tprio_t)newprio > tp->prio))
tp->prio = (tprio_t)newprio;
tp->realprio = (tprio_t)newprio;
"
And
"
Line 183 (threads_queue_t *)tp->u.wtobjp);
"
There's missing "p_" for Thread_t structure fields.

Thanks,
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Build error on osThreadSetPriority

Post by Giovanni »

Hi,

Fixed, I copied the code from trunk and forgot that detail...

Giovanni
josesimoes
Posts: 91
Joined: Sat Feb 18, 2017 11:50 am
Has thanked: 43 times
Been thanked: 23 times

Re: Build error on osThreadSetPriority

Post by josesimoes »

Thanks for looking into this.
It seems that a "p_" is still missing in line #160... it should be tp->p_prio = (tprio_t)newprio;
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Build error on osThreadSetPriority

Post by Giovanni »

Thanks, fixed.

Giovanni
Post Reply