diff --git a/speeduino/scheduler.ino b/speeduino/scheduler.ino index 35afa1cd..c22d48d0 100644 --- a/speeduino/scheduler.ino +++ b/speeduino/scheduler.ino @@ -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 }