Browse Source

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

remotes/origin_old/release/v2.9
inmarket 5 years ago
parent
commit
04c23b408d
  1. 4
      src/gos/gos_chibios.c

4
src/gos/gos_chibios.c

@ -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…
Cancel
Save