a bit of dead code

This commit is contained in:
Matthew Kennedy 2023-03-13 16:25:45 -04:00 committed by Andrey
parent 901405555b
commit dd65b81754
4 changed files with 2 additions and 24 deletions

View File

@ -636,8 +636,6 @@ static void setDefaultEngineConfiguration() {
engineConfiguration->mapErrorDetectionTooHigh = 410; engineConfiguration->mapErrorDetectionTooHigh = 410;
engineConfiguration->hip9011Gain = 1; engineConfiguration->hip9011Gain = 1;
engineConfiguration->isEngineControlEnabled = true;
#endif // EFI_ENGINE_CONTROL #endif // EFI_ENGINE_CONTROL
#include "default_script.lua" #include "default_script.lua"
} }

View File

@ -479,9 +479,7 @@ void commonInitEngineController() {
#endif /* EFI_UNIT_TEST */ #endif /* EFI_UNIT_TEST */
#if (EFI_ENGINE_CONTROL && EFI_SHAFT_POSITION_INPUT) || EFI_SIMULATOR || EFI_UNIT_TEST #if (EFI_ENGINE_CONTROL && EFI_SHAFT_POSITION_INPUT) || EFI_SIMULATOR || EFI_UNIT_TEST
if (engineConfiguration->isEngineControlEnabled) {
initAuxValves(); initAuxValves();
}
#endif /* EFI_ENGINE_CONTROL */ #endif /* EFI_ENGINE_CONTROL */
initTachometer(); initTachometer();

View File

@ -626,14 +626,6 @@ static void enableOrDisable(const char *param, bool isEnabled) {
engine->etbAutoTune = isEnabled; engine->etbAutoTune = isEnabled;
} else if (strEqualCaseInsensitive(param, "verboseKLine")) { } else if (strEqualCaseInsensitive(param, "verboseKLine")) {
engineConfiguration->verboseKLine = isEnabled; engineConfiguration->verboseKLine = isEnabled;
} else if (strEqualCaseInsensitive(param, "step1limimter")) {
engineConfiguration->enabledStep1Limiter = isEnabled;
#if EFI_PROD_CODE
} else if (strEqualCaseInsensitive(param, "auto_idle")) {
#if EFI_IDLE_CONTROL
setIdleMode(isEnabled ? IM_MANUAL : IM_AUTO);
#endif // EFI_IDLE_CONTROL
#endif // EFI_PROD_CODE
} else if (strEqualCaseInsensitive(param, "stepperidle")) { } else if (strEqualCaseInsensitive(param, "stepperidle")) {
engineConfiguration->useStepperIdle = isEnabled; engineConfiguration->useStepperIdle = isEnabled;
} else if (strEqualCaseInsensitive(param, "two_wire_batch_injection")) { } else if (strEqualCaseInsensitive(param, "two_wire_batch_injection")) {
@ -692,16 +684,6 @@ static void enableOrDisable(const char *param, bool isEnabled) {
disableTriggerStimulator(); disableTriggerStimulator();
} }
#endif // EFI_EMULATE_POSITION_SENSORS #endif // EFI_EMULATE_POSITION_SENSORS
} else if (strEqualCaseInsensitive(param, "engine_control")) {
engineConfiguration->isEngineControlEnabled = isEnabled;
} else if (strEqualCaseInsensitive(param, "map_avg")) {
engineConfiguration->isMapAveragingEnabled = isEnabled;
} else if (strEqualCaseInsensitive(param, "logic_analyzer")) {
engineConfiguration->isWaveAnalyzerEnabled = isEnabled;
} else if (strEqualCaseInsensitive(param, "manual_spinning")) {
engineConfiguration->isManualSpinningMode = isEnabled;
} else if (strEqualCaseInsensitive(param, "cylinder_cleanup")) {
engineConfiguration->isCylinderCleanupEnabled = isEnabled;
} else { } else {
efiPrintf("unexpected [%s]", param); efiPrintf("unexpected [%s]", param);
return; // well, MISRA would not like this 'return' here :( return; // well, MISRA would not like this 'return' here :(

View File

@ -711,7 +711,7 @@ bit is_enabled_spi_2
bit is_enabled_spi_3 bit is_enabled_spi_3
bit isSdCardEnabled;enable sd/disable sd bit isSdCardEnabled;enable sd/disable sd
bit rusefiVerbose29b,"29 bit","11 bit";Use 11 bit (standard) or 29 bit (extended) IDs for rusEFI verbose CAN format. bit rusefiVerbose29b,"29 bit","11 bit";Use 11 bit (standard) or 29 bit (extended) IDs for rusEFI verbose CAN format.
bit isEngineControlEnabled bit unusedIsEngineControlEnabled
bit isHip9011Enabled bit isHip9011Enabled
bit isVerboseAlternator bit isVerboseAlternator
bit verboseQuad bit verboseQuad