Fix where some V3.x changes found there way back into V2 causing a compile error

release/v2.9
inmarket 2017-08-26 11:15:22 +10:00
parent c4eed17a2e
commit 04c23b408d
1 changed files with 2 additions and 2 deletions

View File

@ -141,10 +141,10 @@ bool_t gfxSemWaitI(gfxSem *psem)
{
#if (CH_KERNEL_MAJOR == 2) || (CH_KERNEL_MAJOR == 3)
if (psem->sem.s_cnt <= 0)
return GFalse;
return FALSE;
#elif (CH_KERNEL_MAJOR == 4)
if (psem->sem.cnt <= 0)
return GFalse;
return FALSE;
#endif
chSemFastWaitI(&psem->sem);
return TRUE;