Skip to content

Commit fa85e9e

Browse files
committed
🐛 Fix G38_PROBE_TARGET
1 parent 631f719 commit fa85e9e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Marlin/src/module/endstops.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,8 +1110,7 @@ void Endstops::update() {
11101110
if (G38_move && TEST_ENDSTOP(Z_MIN_PROBE) == TERN1(G38_PROBE_AWAY, (G38_move < 4))) {
11111111
G38_did_trigger = true;
11121112
#define _G38_SET(Q) | (stepper.axis_is_moving(_AXIS(Q)) << _AXIS(Q))
1113-
#define _G38_RESP(Q) if (moving[_AXIS(Q)]) { _ENDSTOP_HIT(Q, ENDSTOP); planner.endstop_triggered(_AXIS(Q)); }
1114-
const Flags<NUM_AXES> moving = { value_t(NUM_AXES)(0 MAIN_AXIS_MAP(_G38_SET)) };
1113+
#define _G38_RESP(Q) if (stepper.axis_is_moving(_AXIS(Q))) { _ENDSTOP_HIT(Q, ENDSTOP); planner.endstop_triggered(_AXIS(Q)); }
11151114
MAIN_AXIS_MAP(_G38_RESP);
11161115
}
11171116
#endif

0 commit comments

Comments
 (0)