Browse Source

🐛 Prevent BABYSTEP freeze

See #22830, #13300
FB4S_WIFI
Scott Lahteine 3 years ago
committed by Scott Lahteine
parent
commit
99252cf0cd
  1. 7
      Marlin/src/module/stepper.cpp

7
Marlin/src/module/stepper.cpp

@ -2979,7 +2979,12 @@ void Stepper::report_positions() {
#else
#define CYCLES_EATEN_BABYSTEP 0
#endif
#define EXTRA_CYCLES_BABYSTEP (STEP_PULSE_CYCLES - (CYCLES_EATEN_BABYSTEP))
#if CYCLES_EATEN_BABYSTEP < STEP_PULSE_CYCLES
#define EXTRA_CYCLES_BABYSTEP (STEP_PULSE_CYCLES - (CYCLES_EATEN_BABYSTEP))
#else
#define EXTRA_CYCLES_BABYSTEP 0
#endif
#if EXTRA_CYCLES_BABYSTEP > 20
#define _SAVE_START() const hal_timer_t pulse_start = HAL_timer_get_count(MF_TIMER_PULSE)

Loading…
Cancel
Save