aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2015-10-26 23:08:38 +1000
committerinmarket <andrewh@inmarket.com.au>2015-10-26 23:08:38 +1000
commited67f4832e23043631ddf904d88e7b75593f338a (patch)
tree51ae04bfce673f52962aad510572ab18514fbc36
parent267178254dd1e65348d46ef75fa5521c95da50f4 (diff)
downloaduGFX-ed67f4832e23043631ddf904d88e7b75593f338a.tar.gz
uGFX-ed67f4832e23043631ddf904d88e7b75593f338a.tar.bz2
uGFX-ed67f4832e23043631ddf904d88e7b75593f338a.zip
Another CMSIS fix
-rw-r--r--src/gos/gos_cmsis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gos/gos_cmsis.c b/src/gos/gos_cmsis.c
index bfbafd62..ea4a6599 100644
--- a/src/gos/gos_cmsis.c
+++ b/src/gos/gos_cmsis.c
@@ -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;
}