Fix DELTA pulse wait bug (#14028)

This commit is contained in:
InsanityAutomation 2019-05-17 17:16:56 -04:00 committed by Scott Lahteine
parent 7ccbcf2eaa
commit 06f3273531

View file

@ -2327,10 +2327,10 @@ void Stepper::report_positions() {
#define _SAVE_START NOOP #define _SAVE_START NOOP
#if EXTRA_CYCLES_BABYSTEP > 0 #if EXTRA_CYCLES_BABYSTEP > 0
#define _PULSE_WAIT DELAY_NS(EXTRA_CYCLES_BABYSTEP * NANOSECONDS_PER_CYCLE) #define _PULSE_WAIT DELAY_NS(EXTRA_CYCLES_BABYSTEP * NANOSECONDS_PER_CYCLE)
#elif STEP_PULSE_CYCLES > 0
#define _PULSE_WAIT NOOP
#elif ENABLED(DELTA) #elif ENABLED(DELTA)
#define _PULSE_WAIT DELAY_US(2); #define _PULSE_WAIT DELAY_US(2);
#elif STEP_PULSE_CYCLES > 0
#define _PULSE_WAIT NOOP
#else #else
#define _PULSE_WAIT DELAY_US(4); #define _PULSE_WAIT DELAY_US(4);
#endif #endif