0
0
Fork 0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2025-01-18 23:49:49 +00:00

🐛 Prevent BABYSTEP freeze

See #22830, #13300
This commit is contained in:
Scott Lahteine 2022-04-21 08:58:45 -05:00
parent 91cf4eb977
commit bf38ef23e5

View file

@ -3072,7 +3072,12 @@ void Stepper::report_positions() {
#else
#define CYCLES_EATEN_BABYSTEP 0
#endif
#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)