mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-01-31 14:12:52 +00:00
parent
03676d8e2f
commit
12b697c5cd
1 changed files with 1 additions and 2 deletions
|
@ -314,7 +314,7 @@ void Endstops::update() {
|
||||||
|
|
||||||
#define UPDATE_ENDSTOP(AXIS,MINMAX) do { \
|
#define UPDATE_ENDSTOP(AXIS,MINMAX) do { \
|
||||||
UPDATE_ENDSTOP_BIT(AXIS, MINMAX); \
|
UPDATE_ENDSTOP_BIT(AXIS, MINMAX); \
|
||||||
if (TEST_ENDSTOP(_ENDSTOP(AXIS, MINMAX)) && stepper.current_block->steps[_AXIS(AXIS)] > 0) { \
|
if (TEST_ENDSTOP(_ENDSTOP(AXIS, MINMAX))) { \
|
||||||
_ENDSTOP_HIT(AXIS, MINMAX); \
|
_ENDSTOP_HIT(AXIS, MINMAX); \
|
||||||
stepper.endstop_triggered(_AXIS(AXIS)); \
|
stepper.endstop_triggered(_AXIS(AXIS)); \
|
||||||
} \
|
} \
|
||||||
|
@ -444,7 +444,6 @@ void Endstops::update() {
|
||||||
#else
|
#else
|
||||||
if (X_MAX_TEST) UPDATE_ENDSTOP(X, MAX);
|
if (X_MAX_TEST) UPDATE_ENDSTOP(X, MAX);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue