Fix for Teensy not compiling when number of channels was set to 8/8
This commit is contained in:
parent
5d3705d9ef
commit
bb9ade4657
|
@ -1274,15 +1274,15 @@ void ftm3_isr(void)
|
|||
#endif
|
||||
#if (INJ_CHANNELS >= 6)
|
||||
bool interrupt2 = (FTM3_C1SC & FTM_CSC_CHF);
|
||||
else if(interrupt2) { FTM3_C1SC &= ~FTM_CSC_CHF; fuelSchedule6Interrupt(); }
|
||||
if(interrupt2) { FTM3_C1SC &= ~FTM_CSC_CHF; fuelSchedule6Interrupt(); }
|
||||
#endif
|
||||
#if (INJ_CHANNELS >= 7)
|
||||
bool interrupt3 = (FTM3_C2SC & FTM_CSC_CHF);
|
||||
else if(interrupt3) { FTM3_C2SC &= ~FTM_CSC_CHF; fuelSchedule7Interrupt(); }
|
||||
if(interrupt3) { FTM3_C2SC &= ~FTM_CSC_CHF; fuelSchedule7Interrupt(); }
|
||||
#endif
|
||||
#if (INJ_CHANNELS >= 8)
|
||||
bool interrupt4 = (FTM3_C3SC & FTM_CSC_CHF);
|
||||
else if(interrupt4) { FTM3_C3SC &= ~FTM_CSC_CHF; fuelSchedule8Interrupt(); }
|
||||
if(interrupt4) { FTM3_C3SC &= ~FTM_CSC_CHF; fuelSchedule8Interrupt(); }
|
||||
#endif
|
||||
#if (IGN_CHANNELS >= 5)
|
||||
bool interrupt5 = (FTM3_C4SC & FTM_CSC_CHF);
|
||||
|
@ -1290,15 +1290,15 @@ void ftm3_isr(void)
|
|||
#endif
|
||||
#if (IGN_CHANNELS >= 6)
|
||||
bool interrupt6 = (FTM3_C5SC & FTM_CSC_CHF);
|
||||
else if(interrupt6) { FTM3_C5SC &= ~FTM_CSC_CHF; ignitionSchedule6Interrupt(); }
|
||||
if(interrupt6) { FTM3_C5SC &= ~FTM_CSC_CHF; ignitionSchedule6Interrupt(); }
|
||||
#endif
|
||||
#if (IGN_CHANNELS >= 7)
|
||||
bool interrupt7 = (FTM3_C6SC & FTM_CSC_CHF);
|
||||
else if(interrupt7) { FTM3_C6SC &= ~FTM_CSC_CHF; ignitionSchedule7Interrupt(); }
|
||||
if(interrupt7) { FTM3_C6SC &= ~FTM_CSC_CHF; ignitionSchedule7Interrupt(); }
|
||||
#endif
|
||||
#if (IGN_CHANNELS >= 8)
|
||||
bool interrupt8 = (FTM3_C7SC & FTM_CSC_CHF);
|
||||
else if(interrupt8) { FTM3_C7SC &= ~FTM_CSC_CHF; ignitionSchedule8Interrupt(); }
|
||||
if(interrupt8) { FTM3_C7SC &= ~FTM_CSC_CHF; ignitionSchedule8Interrupt(); }
|
||||
#endif
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue