Another CMSIS fix

This commit is contained in:
inmarket 2015-10-26 23:08:38 +10:00
parent 267178254d
commit ed67f4832e

View File

@ -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;
}