Another CMSIS fix
This commit is contained in:
parent
267178254d
commit
ed67f4832e
@ -55,7 +55,7 @@ void gfxSemDestroy(gfxSem* psem)
|
||||
|
||||
bool_t gfxSemWait(gfxSem* psem, delaytime_t ms)
|
||||
{
|
||||
if (osSemaphoreWait(psem->id, ms) == osOK) {
|
||||
if (osSemaphoreWait(psem->id, ms) > 0) {
|
||||
psem->available++;
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user