diff --git a/speeduino/init.ino b/speeduino/init.ino index 82ff36ae..e4e8676e 100644 --- a/speeduino/init.ino +++ b/speeduino/init.ino @@ -153,13 +153,13 @@ void initialiseAll() endCoil3Charge(); endCoil4Charge(); endCoil5Charge(); - #if (INJ_CHANNELS >= 6) + #if (IGN_CHANNELS >= 6) endCoil6Charge(); #endif - #if (INJ_CHANNELS >= 7) + #if (IGN_CHANNELS >= 7) endCoil7Charge(); #endif - #if (INJ_CHANNELS >= 8) + #if (IGN_CHANNELS >= 8) endCoil8Charge(); #endif @@ -169,13 +169,13 @@ void initialiseAll() closeInjector3(); closeInjector4(); closeInjector5(); - #if (IGN_CHANNELS >= 6) + #if (INJ_CHANNELS >= 6) closeInjector6(); #endif - #if (IGN_CHANNELS >= 7) + #if (INJ_CHANNELS >= 7) closeInjector7(); #endif - #if (IGN_CHANNELS >= 8) + #if (INJ_CHANNELS >= 8) closeInjector8(); #endif diff --git a/speeduino/scheduler.ino b/speeduino/scheduler.ino index 210af71f..da7d367b 100644 --- a/speeduino/scheduler.ino +++ b/speeduino/scheduler.ino @@ -87,19 +87,19 @@ void initialiseSchedulers() ignitionSchedule3.compare = &IGN3_COMPARE; ignitionSchedule4.counter = &IGN4_COUNTER; ignitionSchedule4.compare = &IGN4_COMPARE; - #if (INJ_CHANNELS >= 5) + #if (IGN_CHANNELS >= 5) ignitionSchedule5.counter = &IGN5_COUNTER; ignitionSchedule5.compare = &IGN5_COMPARE; #endif - #if (INJ_CHANNELS >= 6) + #if (IGN_CHANNELS >= 6) ignitionSchedule6.counter = &IGN6_COUNTER; ignitionSchedule6.compare = &IGN6_COMPARE; #endif - #if (INJ_CHANNELS >= 7) + #if (IGN_CHANNELS >= 7) ignitionSchedule7.counter = &IGN7_COUNTER; ignitionSchedule7.compare = &IGN7_COMPARE; #endif - #if (INJ_CHANNELS >= 8) + #if (IGN_CHANNELS >= 8) ignitionSchedule8.counter = &IGN8_COUNTER; ignitionSchedule8.compare = &IGN8_COMPARE; #endif