engineConfiguration->stepperDirectionPinMode

This commit is contained in:
Andrei 2017-06-13 21:32:34 +03:00
parent f1164eeec5
commit 0f938877b4
1 changed files with 1 additions and 6 deletions

View File

@ -36,11 +36,6 @@
#if EFI_IDLE_CONTROL || defined(__DOXYGEN__)
#include "allsensors.h"
#ifndef STEPPER_DIRECTION_PIN_MODE
// todo: migrate this to boardConfiguration->idle.stepperDirectionPinMode
#define STEPPER_DIRECTION_PIN_MODE OM_DEFAULT
#endif /* STEPPER_DIRECTION_PIN_MODE */
static THD_WORKING_AREA(ivThreadStack, UTILITY_THREAD_STACK_SIZE);
static Logging *logger;
@ -321,7 +316,7 @@ static void applyIdleSolenoidPinState(PwmConfig *state, int stateIndex) {
static void initIdleHardware() {
if (boardConfiguration->useStepperIdle) {
iacMotor.initialize(boardConfiguration->idle.stepperStepPin, boardConfiguration->idle.stepperDirectionPin,
STEPPER_DIRECTION_PIN_MODE, engineConfiguration->idleStepperReactionTime,
engineConfiguration->stepperDirectionPinMode, engineConfiguration->idleStepperReactionTime,
engineConfiguration->idleStepperTotalSteps, engineConfiguration->stepperEnablePin);
} else {
/**