瀏覽代碼

Allow MINIMUM_STEPPER_PULSE override with LV8729 (#15162)

Karl Andersson 5 年之前
父節點
當前提交
123ecfe613
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      Marlin/src/module/stepper.h

+ 1
- 1
Marlin/src/module/stepper.h 查看文件

@@ -164,7 +164,7 @@
164 164
 // adding the "start stepper pulse" code section execution cycles to account for that not all
165 165
 // pulses start at the beginning of the loop, so an extra time must be added to compensate so
166 166
 // the last generated pulse (usually the extruder stepper) has the right length
167
-#if HAS_DRIVER(LV8729)
167
+#if HAS_DRIVER(LV8729) && MINIMUM_STEPPER_PULSE == 0
168 168
   #define MIN_PULSE_TICKS ((((PULSE_TIMER_TICKS_PER_US) + 1) / 2) + ((MIN_ISR_START_LOOP_CYCLES) / uint32_t(PULSE_TIMER_PRESCALE)))
169 169
 #else
170 170
   #define MIN_PULSE_TICKS (((PULSE_TIMER_TICKS_PER_US) * uint32_t(MINIMUM_STEPPER_PULSE)) + ((MIN_ISR_START_LOOP_CYCLES) / uint32_t(PULSE_TIMER_PRESCALE)))

Loading…
取消
儲存