From 0418ce777256d2fe4cb9051e5a23b9e5b2a9c2a1 Mon Sep 17 00:00:00 2001 From: Terje Io Date: Sun, 8 Aug 2021 12:54:07 +0200 Subject: [PATCH] updated for Trinamic API changes --- src/driver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/driver.c b/src/driver.c index 2a7de78..77e7440 100644 --- a/src/driver.c +++ b/src/driver.c @@ -192,10 +192,9 @@ static output_signal_t outputpin[] = { #ifdef Z2_DIRECTION_PIN { .id = Output_DirZ_2, .port = Z2_DIRECTION_PORT, .pin = Z2_DIRECTION_PIN, .group = PinGroup_StepperDir }, #endif -#if !TRINAMIC_ENABLE #ifdef STEPPERS_ENABLE_PORT { .id = Output_StepperEnable, .port = STEPPERS_ENABLE_PORT, .pin = STEPPERS_ENABLE_PIN, .group = PinGroup_StepperEnable }, -#endif +#else #ifdef X_ENABLE_PORT { .id = Output_StepperEnableX, .port = X_ENABLE_PORT, .pin = X_ENABLE_PIN, .group = PinGroup_StepperEnable }, #endif @@ -1220,7 +1219,7 @@ bool driver_init (void) { #endif hal.info = "LCP1769"; - hal.driver_version = "210726"; + hal.driver_version = "210805"; hal.driver_setup = driver_setup; #ifdef BOARD_NAME hal.board = BOARD_NAME; @@ -1235,6 +1234,7 @@ bool driver_init (void) { hal.stepper.enable = stepperEnable; hal.stepper.cycles_per_tick = stepperCyclesPerTick; hal.stepper.pulse_start = stepperPulseStart; + hal.stepper.motor_iterator = motor_iterator, #ifdef SQUARING_ENABLED hal.stepper.get_auto_squared = getAutoSquaredAxes; hal.stepper.disable_motors = StepperDisableMotors;