Page 1 of 1

Build error on osThreadSetPriority

Posted: Wed Apr 05, 2017 4:33 pm
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,

Re: Build error on osThreadSetPriority

Posted: Wed Apr 05, 2017 7:06 pm
by Giovanni
Hi,

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

Giovanni

Re: Build error on osThreadSetPriority

Posted: Mon Apr 17, 2017 11:58 am
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;

Re: Build error on osThreadSetPriority

Posted: Mon Apr 17, 2017 2:24 pm
by Giovanni
Thanks, fixed.

Giovanni