From 6c6fa74c0758d1488a71a0a21c3a68877956fc1e Mon Sep 17 00:00:00 2001 From: rusEfi Date: Mon, 1 Sep 2014 20:02:44 -0500 Subject: [PATCH] auto-sync --- firmware/controllers/settings.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/firmware/controllers/settings.cpp b/firmware/controllers/settings.cpp index 5ce7d69bca..751c0e152e 100644 --- a/firmware/controllers/settings.cpp +++ b/firmware/controllers/settings.cpp @@ -168,7 +168,7 @@ void printConfiguration(engine_configuration_s *engineConfiguration, engine_conf scheduleMsg(&logger, "analogInputDividerCoefficient: %f", engineConfiguration->analogInputDividerCoefficient); - #if EFI_PROD_CODE +#if EFI_PROD_CODE scheduleMsg(&logger, "idlePinMode: %s", pinModeToString(boardConfiguration->idleValvePinMode)); scheduleMsg(&logger, "malfunctionIndicatorPinMode: %s", pinModeToString(boardConfiguration->malfunctionIndicatorPinMode)); @@ -479,6 +479,10 @@ static void setWholeFuelMapCmd(float value) { } #if EFI_PROD_CODE +static void setPotSpi(int spi) { + boardConfiguration->digitalPotentiometerSpiDevice = (spi_device_e) spi; +} + static void setTriggerInputPin(const char *indexStr, const char *pinName) { int index = atoi(indexStr); if (index < 0 || index > 2) @@ -731,6 +735,7 @@ void initSettings(void) { addConsoleAction("mapinfo", printMAPInfo); addConsoleActionSS("set_analog_input_pin", setAnalogInputPin); addConsoleActionSS("set_logic_input_pin", setLogicInputPin); + addConsoleActionI("set_pot_spi", setPotSpi); #endif /* EFI_PROD_CODE */ }