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

This commit is contained in:
inmarket 2017-08-26 11:15:22 +10:00
parent c4eed17a2e
commit 04c23b408d

View File

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