parent
c48db818f0
commit
7215151877
|
@ -322,26 +322,6 @@ static void setDebugMode(int value) {
|
|||
engineConfiguration->debugMode = (debug_mode_e) value;
|
||||
}
|
||||
|
||||
static void setInjectorLag(float voltage, float value) {
|
||||
setCurveValue(INJECTOR_LAG_CURVE, voltage, value);
|
||||
}
|
||||
|
||||
static void setGlobalFuelCorrection(float value) {
|
||||
if (value < 0.01 || value > 50)
|
||||
return;
|
||||
efiPrintf("setting fuel mult=%.2f", value);
|
||||
engineConfiguration->globalFuelCorrection = 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) {
|
||||
setTable(config->ignitionTable, value);
|
||||
}
|
||||
|
@ -368,14 +348,6 @@ static void setWholeVeCmd(float value) {
|
|||
|
||||
#if EFI_PROD_CODE
|
||||
|
||||
static void setEgtSpi(int spi) {
|
||||
engineConfiguration->max31855spiDevice = (spi_device_e) spi;
|
||||
}
|
||||
|
||||
static void setPotSpi(int spi) {
|
||||
engineConfiguration->digitalPotentiometerSpiDevice = (spi_device_e) spi;
|
||||
}
|
||||
|
||||
static brain_pin_e parseBrainPinWithErrorMessage(const char *pinName) {
|
||||
brain_pin_e pin = parseBrainPin(pinName);
|
||||
if (pin == Gpio::Invalid) {
|
||||
|
@ -545,19 +517,6 @@ static void setTriggerSimulatorMode(const char *indexStr, const char *modeCode)
|
|||
engineConfiguration->triggerSimulatorPinModes[index] = (pin_output_mode_e) mode;
|
||||
}
|
||||
|
||||
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) {
|
||||
int index = atoi(indexStr);
|
||||
if (index < 0 || index >= TRIGGER_SIMULATOR_PIN_COUNT)
|
||||
|
@ -1051,10 +1010,6 @@ void initSettings(void) {
|
|||
addConsoleActionS(CMD_ENABLE, enable);
|
||||
addConsoleActionS(CMD_DISABLE, disable);
|
||||
|
||||
addConsoleActionFF("set_injector_lag", setInjectorLag);
|
||||
|
||||
addConsoleActionFF("set_fan", setFanSetting);
|
||||
|
||||
addConsoleActionSS("set", setValue);
|
||||
addConsoleActionS("get", getValue);
|
||||
|
||||
|
@ -1065,8 +1020,6 @@ void initSettings(void) {
|
|||
addConsoleActionSS(CMD_TRIGGER_PIN, setTriggerInputPin);
|
||||
addConsoleActionSS(CMD_TRIGGER_SIMULATOR_PIN, setTriggerSimulatorPin);
|
||||
|
||||
addConsoleActionSS("set_egt_cs_pin", (VoidCharPtrCharPtr) setEgtCSPin);
|
||||
addConsoleActionI("set_egt_spi", setEgtSpi);
|
||||
addConsoleActionI(CMD_ECU_UNLOCK, unlockEcu);
|
||||
|
||||
addConsoleActionSS("set_trigger_simulator_mode", setTriggerSimulatorMode);
|
||||
|
|
Loading…
Reference in New Issue