Skip to content

Commit

Permalink
TOUCH_MI_DEPLOY_XPOS fallback to X_MIN_POS (MarlinFirmware#16226)
Browse files Browse the repository at this point in the history
  • Loading branch information
shitcreek authored and LinoBarreca committed Dec 18, 2019
1 parent 87c9e94 commit 8a0fddd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Marlin/src/module/probe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ xyz_pos_t probe_offset; // Initialized by settings.load()

// Move to the magnet to unlock the probe
void run_deploy_moves_script() {
#if TOUCH_MI_DEPLOY_XPOS > X_MAX_BED
#ifndef TOUCH_MI_DEPLOY_XPOS
#define TOUCH_MI_DEPLOY_XPOS X_MIN_POS
#elif TOUCH_MI_DEPLOY_XPOS > X_MAX_BED
TemporaryGlobalEndstopsState unlock_x(false);
#endif
#if TOUCH_MI_DEPLOY_YPOS > Y_MAX_BED
Expand Down

0 comments on commit 8a0fddd

Please sign in to comment.