From 8fabcd15abf8fbc90b9dd872b933850b3d2684bf Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sun, 26 Sep 2021 18:07:09 -0400 Subject: [PATCH] wow that was a bad setting name --- firmware/config/engines/lada_kalina.cpp | 2 +- firmware/controllers/actuators/idle_hardware.cpp | 2 +- firmware/controllers/actuators/idle_thread.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/config/engines/lada_kalina.cpp b/firmware/config/engines/lada_kalina.cpp index a16ebcbfa2..5f557a8276 100644 --- a/firmware/config/engines/lada_kalina.cpp +++ b/firmware/config/engines/lada_kalina.cpp @@ -26,7 +26,7 @@ void setLadaKalina(DECLARE_CONFIG_PARAMETER_SIGNATURE) { engineConfiguration->stepperDcIo[1].directionPin2 = TLE8888_PIN_24; /* IDLE configuration */ engineConfiguration->useStepperIdle = true; - engineConfiguration->useHbridges = true; + engineConfiguration->useHbridgesToDriveIdleStepper = true; engineConfiguration->idleMode = IM_AUTO; engineConfiguration->useTLE8888_stepper = true; } diff --git a/firmware/controllers/actuators/idle_hardware.cpp b/firmware/controllers/actuators/idle_hardware.cpp index ce45d178a9..ebfa378fb8 100644 --- a/firmware/controllers/actuators/idle_hardware.cpp +++ b/firmware/controllers/actuators/idle_hardware.cpp @@ -91,7 +91,7 @@ void initIdleHardware(DECLARE_ENGINE_PARAMETER_SUFFIX) { if (CONFIG(useStepperIdle)) { StepperHw* hw; - if (CONFIG(useHbridges)) { + if (CONFIG(useHbridgesToDriveIdleStepper)) { auto motorA = initDcMotor(engineConfiguration->stepperDcIo[0], 2, /*useTwoWires*/ true PASS_ENGINE_PARAMETER_SUFFIX); auto motorB = initDcMotor(engineConfiguration->stepperDcIo[1], 3, /*useTwoWires*/ true PASS_ENGINE_PARAMETER_SUFFIX); diff --git a/firmware/controllers/actuators/idle_thread.cpp b/firmware/controllers/actuators/idle_thread.cpp index 7dcfcbd857..25ca9d914b 100644 --- a/firmware/controllers/actuators/idle_thread.cpp +++ b/firmware/controllers/actuators/idle_thread.cpp @@ -85,12 +85,12 @@ void idleDebug(const char *msg, percent_t value) { static void showIdleInfo(DECLARE_ENGINE_PARAMETER_SIGNATURE) { const char * idleModeStr = getIdle_mode_e(engineConfiguration->idleMode); efiPrintf("useStepperIdle=%s useHbridges=%s", - boolToString(CONFIG(useStepperIdle)), boolToString(CONFIG(useHbridges))); + boolToString(CONFIG(useStepperIdle)), boolToString(CONFIG(useHbridgesToDriveIdleStepper))); efiPrintf("idleMode=%s position=%.2f", idleModeStr, getIdlePosition()); if (CONFIG(useStepperIdle)) { - if (CONFIG(useHbridges)) { + if (CONFIG(useHbridgesToDriveIdleStepper)) { efiPrintf("Coil A:"); efiPrintf(" pin1=%s", hwPortname(CONFIG(stepperDcIo[0].directionPin1))); efiPrintf(" pin2=%s", hwPortname(CONFIG(stepperDcIo[0].directionPin2)));