Skip to content

Commit

Permalink
updated for Trinamic API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
terjeio committed Aug 8, 2021
1 parent e885309 commit 0418ce7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 0418ce7

Please sign in to comment.