better conditional compilation

This commit is contained in:
rusefi 2019-01-31 18:30:40 -05:00
parent f475fb1691
commit cffac9b28e
2 changed files with 3 additions and 1 deletions

View File

@ -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);

View File

@ -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) {