Build error on osThreadSetPriority

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

Moderators: RoccoMarco, lbednarz, utzig, tfAteba, barthess

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

Build error on osThreadSetPriority

Postby sjmneves » Wed Apr 05, 2017 4:33 pm

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: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Build error on osThreadSetPriority

Postby Giovanni » Wed Apr 05, 2017 7:06 pm

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

Postby josesimoes » Mon Apr 17, 2017 11:58 am

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: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Build error on osThreadSetPriority

Postby Giovanni » Mon Apr 17, 2017 2:24 pm

Thanks, fixed.

Giovanni


Return to “General Support”

Who is online

Users browsing this forum: No registered users and 58 guests