mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
sema: harmonize sema_post return with rest of API
This commit is contained in:
parent
54e6163ab3
commit
632c9a2bd0
@ -133,6 +133,7 @@ static inline int sema_wait(sema_t *sema)
|
||||
*
|
||||
* @param[in] sema A semaphore.
|
||||
*
|
||||
* @return 0, on success
|
||||
* @return -EINVAL, if semaphore is invalid.
|
||||
* @return -EOVERFLOW, if the semaphore's value would overflow.
|
||||
*/
|
||||
|
@ -169,7 +169,7 @@ int sema_post(sema_t *sema)
|
||||
restoreIRQ(old_state);
|
||||
}
|
||||
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/** @} */
|
||||
|
Loading…
Reference in New Issue
Block a user