dead settings

This commit is contained in:
Matthew Kennedy 2023-03-31 22:59:58 -07:00
parent 68285ff5a3
commit 292174c5c8
1 changed files with 0 additions and 30 deletions

View File

@ -125,15 +125,6 @@ static void setDebugMode(int 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) {
setTable(config->ignitionTable, value);
}
@ -160,10 +151,6 @@ static void setWholeVeCmd(float value) {
#if EFI_PROD_CODE
static void setEgtSpi(int spi) {
engineConfiguration->max31855spiDevice = (spi_device_e) spi;
}
static brain_pin_e parseBrainPinWithErrorMessage(const char *pinName) {
brain_pin_e pin = parseBrainPin(pinName);
if (pin == Gpio::Invalid) {
@ -313,19 +300,6 @@ static void setTriggerInputPin(const char *indexStr, const char *pinName) {
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) {
int index = atoi(indexStr);
if (index < 0 || index >= TRIGGER_SIMULATOR_PIN_COUNT)
@ -670,8 +644,6 @@ void initSettings(void) {
addConsoleActionS(CMD_ENABLE, enable);
addConsoleActionS(CMD_DISABLE, disable);
addConsoleActionFF("set_fan", setFanSetting);
addConsoleActionSS("set", setValue);
addConsoleActionS("get", getValue);
@ -682,8 +654,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);
addConsoleActionS("set_fuel_pump_pin", setFuelPumpPin);