osThreadSetPriority return invalid type Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
omcdr
Posts: 89
Joined: Wed Aug 17, 2016 3:25 pm
Has thanked: 7 times
Been thanked: 7 times

osThreadSetPriority return invalid type  Topic is solved

Postby omcdr » Sat Mar 18, 2017 8:15 pm

Function osThreadSetPriority should return osStatus type, but return osPriority. Is this mistake in function definition ?

Code: Select all

osStatus osThreadSetPriority(osThreadId thread_id, osPriority newprio) {
  osPriority oldprio;
(...)
  return oldprio;
}

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: osThreadSetPriority return invalid type

Postby Giovanni » Sat Mar 18, 2017 8:27 pm

Hi,

It is an error in implementation, apparently it should return an error code, not the old priority.

Giovanni

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: osThreadSetPriority return invalid type

Postby Giovanni » Sun Apr 02, 2017 11:10 am

Fixed as bug #823, thanks.

Giovanni


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 48 guests