Fix where some V3.x changes found there way back into V2 causing a compile error
This commit is contained in:
parent
c4eed17a2e
commit
04c23b408d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user