code guard & unneeded code?

This commit is contained in:
rusefillc 2023-05-24 01:23:39 -04:00
parent 57dec507c3
commit 5df6e5a63e
1 changed files with 2 additions and 16 deletions

View File

@ -292,22 +292,12 @@ static void setInjectionMode(int value) {
}
static void setIgnitionMode(int value) {
#if EFI_ENGINE_CONTROL
engineConfiguration->ignitionMode = (ignition_mode_e) value;
incrementGlobalConfigurationVersion();
prepareOutputSignals();
doPrintConfiguration();
}
static void setOneCoilIgnition() {
setIgnitionMode((int)IM_ONE_COIL);
}
static void setWastedIgnition() {
setIgnitionMode((int)IM_WASTED_SPARK);
}
static void setIndividualCoilsIgnition() {
setIgnitionMode((int)IM_INDIVIDUAL_COILS);
#endif // EFI_ENGINE_CONTROL
}
static void setTriggerType(int value) {
@ -937,10 +927,6 @@ void initSettings(void) {
addConsoleAction("calibrate_tps_1_closed", grabTPSIsClosed);
addConsoleAction("calibrate_tps_1_wot", grabTPSIsWideOpen);
addConsoleAction("set_one_coil_ignition", setOneCoilIgnition);
addConsoleAction("set_wasted_spark_ignition", setWastedIgnition);
addConsoleAction("set_individual_coils_ignition", setIndividualCoilsIgnition);
addConsoleActionF("set_whole_phase_map", setWholePhaseMapCmd);
addConsoleActionF("set_whole_timing_map", setWholeTimingMapCmd);
addConsoleActionF("set_whole_ve_map", setWholeVeCmd);