dead settings
This commit is contained in:
parent
68285ff5a3
commit
292174c5c8
|
@ -125,15 +125,6 @@ static void setDebugMode(int value) {
|
||||||
engineConfiguration->debugMode = (debug_mode_e) value;
|
engineConfiguration->debugMode = (debug_mode_e) value;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void setFanSetting(float onTempC, float offTempC) {
|
|
||||||
if (onTempC <= offTempC) {
|
|
||||||
efiPrintf("ON temp [%.2f] should be above OFF temp [%.2f]", onTempC, offTempC);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
engineConfiguration->fanOnTemperature = onTempC;
|
|
||||||
engineConfiguration->fanOffTemperature = offTempC;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void setWholeTimingMap(float value) {
|
static void setWholeTimingMap(float value) {
|
||||||
setTable(config->ignitionTable, value);
|
setTable(config->ignitionTable, value);
|
||||||
}
|
}
|
||||||
|
@ -160,10 +151,6 @@ static void setWholeVeCmd(float value) {
|
||||||
|
|
||||||
#if EFI_PROD_CODE
|
#if EFI_PROD_CODE
|
||||||
|
|
||||||
static void setEgtSpi(int spi) {
|
|
||||||
engineConfiguration->max31855spiDevice = (spi_device_e) spi;
|
|
||||||
}
|
|
||||||
|
|
||||||
static brain_pin_e parseBrainPinWithErrorMessage(const char *pinName) {
|
static brain_pin_e parseBrainPinWithErrorMessage(const char *pinName) {
|
||||||
brain_pin_e pin = parseBrainPin(pinName);
|
brain_pin_e pin = parseBrainPin(pinName);
|
||||||
if (pin == Gpio::Invalid) {
|
if (pin == Gpio::Invalid) {
|
||||||
|
@ -313,19 +300,6 @@ static void setTriggerInputPin(const char *indexStr, const char *pinName) {
|
||||||
incrementGlobalConfigurationVersion();
|
incrementGlobalConfigurationVersion();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void setEgtCSPin(const char *indexStr, const char *pinName) {
|
|
||||||
int index = atoi(indexStr);
|
|
||||||
if (index < 0 || index >= EGT_CHANNEL_COUNT)
|
|
||||||
return;
|
|
||||||
brain_pin_e pin = parseBrainPinWithErrorMessage(pinName);
|
|
||||||
if (pin == Gpio::Invalid) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
efiPrintf("setting EGT CS pin[%d] to %s please save&restart", index, hwPortname(pin));
|
|
||||||
engineConfiguration->max31855_cs[index] = pin;
|
|
||||||
incrementGlobalConfigurationVersion();
|
|
||||||
}
|
|
||||||
|
|
||||||
static void setTriggerSimulatorPin(const char *indexStr, const char *pinName) {
|
static void setTriggerSimulatorPin(const char *indexStr, const char *pinName) {
|
||||||
int index = atoi(indexStr);
|
int index = atoi(indexStr);
|
||||||
if (index < 0 || index >= TRIGGER_SIMULATOR_PIN_COUNT)
|
if (index < 0 || index >= TRIGGER_SIMULATOR_PIN_COUNT)
|
||||||
|
@ -670,8 +644,6 @@ void initSettings(void) {
|
||||||
addConsoleActionS(CMD_ENABLE, enable);
|
addConsoleActionS(CMD_ENABLE, enable);
|
||||||
addConsoleActionS(CMD_DISABLE, disable);
|
addConsoleActionS(CMD_DISABLE, disable);
|
||||||
|
|
||||||
addConsoleActionFF("set_fan", setFanSetting);
|
|
||||||
|
|
||||||
addConsoleActionSS("set", setValue);
|
addConsoleActionSS("set", setValue);
|
||||||
addConsoleActionS("get", getValue);
|
addConsoleActionS("get", getValue);
|
||||||
|
|
||||||
|
@ -682,8 +654,6 @@ void initSettings(void) {
|
||||||
addConsoleActionSS(CMD_TRIGGER_PIN, setTriggerInputPin);
|
addConsoleActionSS(CMD_TRIGGER_PIN, setTriggerInputPin);
|
||||||
addConsoleActionSS(CMD_TRIGGER_SIMULATOR_PIN, setTriggerSimulatorPin);
|
addConsoleActionSS(CMD_TRIGGER_SIMULATOR_PIN, setTriggerSimulatorPin);
|
||||||
|
|
||||||
addConsoleActionSS("set_egt_cs_pin", (VoidCharPtrCharPtr) setEgtCSPin);
|
|
||||||
addConsoleActionI("set_egt_spi", setEgtSpi);
|
|
||||||
addConsoleActionI(CMD_ECU_UNLOCK, unlockEcu);
|
addConsoleActionI(CMD_ECU_UNLOCK, unlockEcu);
|
||||||
|
|
||||||
addConsoleActionS("set_fuel_pump_pin", setFuelPumpPin);
|
addConsoleActionS("set_fuel_pump_pin", setFuelPumpPin);
|
||||||
|
|
Loading…
Reference in New Issue