better conditional compilation
This commit is contained in:
parent
f475fb1691
commit
cffac9b28e
|
@ -496,7 +496,7 @@ void prepareOutputSignals(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
|||
TRIGGER_SHAPE(prepareShape());
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif /* EFI_ENGINE_CONTROL */
|
||||
|
||||
void setFuelRpmBin(float from, float to DECLARE_CONFIG_PARAMETER_SUFFIX) {
|
||||
setTableBin(config->fuelRpmBins, FUEL_RPM_COUNT, from, to);
|
||||
|
|
|
@ -368,6 +368,7 @@ void TriggerShape::findTriggerPosition(event_trigger_position_s *position,
|
|||
}
|
||||
|
||||
void TriggerShape::prepareShape() {
|
||||
#if (EFI_ENGINE_CONTROL && EFI_SHAFT_POSITION_INPUT) || defined(__DOXYGEN__)
|
||||
int engineCycleInt = (int) getEngineCycle(operationMode);
|
||||
for (int angle = 0; angle < engineCycleInt; angle++) {
|
||||
int triggerShapeIndex = findAngleIndex(angle);
|
||||
|
@ -377,6 +378,7 @@ void TriggerShape::prepareShape() {
|
|||
}
|
||||
triggerIndexByAngle[angle] = triggerShapeIndex;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void TriggerShape::setTriggerSynchronizationGap(float syncRatio) {
|
||||
|
|
Loading…
Reference in New Issue