|
@ -1108,10 +1108,6 @@ void Stepper::report_positions() { |
|
|
|
|
|
|
|
|
#if ENABLED(BABYSTEPPING) |
|
|
#if ENABLED(BABYSTEPPING) |
|
|
|
|
|
|
|
|
// MUST ONLY BE CALLED BY AN ISR,
|
|
|
|
|
|
// No other ISR should ever interrupt this!
|
|
|
|
|
|
void Stepper::babystep(const uint8_t axis, const bool direction) { |
|
|
|
|
|
|
|
|
|
|
|
#define _ENABLE(axis) enable_## axis() |
|
|
#define _ENABLE(axis) enable_## axis() |
|
|
#define _READ_DIR(AXIS) AXIS ##_DIR_READ |
|
|
#define _READ_DIR(AXIS) AXIS ##_DIR_READ |
|
|
#define _INVERT_DIR(AXIS) INVERT_## AXIS ##_DIR |
|
|
#define _INVERT_DIR(AXIS) INVERT_## AXIS ##_DIR |
|
@ -1127,6 +1123,10 @@ void Stepper::report_positions() { |
|
|
_APPLY_DIR(AXIS, old_pin); \ |
|
|
_APPLY_DIR(AXIS, old_pin); \ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// MUST ONLY BE CALLED BY AN ISR,
|
|
|
|
|
|
// No other ISR should ever interrupt this!
|
|
|
|
|
|
void Stepper::babystep(const uint8_t axis, const bool direction) { |
|
|
|
|
|
|
|
|
switch (axis) { |
|
|
switch (axis) { |
|
|
|
|
|
|
|
|
case X_AXIS: |
|
|
case X_AXIS: |
|
|