From 5006ca07bee13528bebd343aa6f56106fe98e671 Mon Sep 17 00:00:00 2001 From: InsanityAutomation Date: Sat, 19 Sep 2020 00:14:10 -0400 Subject: [PATCH] Prevent min move from going into overflow sending Z to 65k --- Marlin/src/gcode/calibrate/G34_M422.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/gcode/calibrate/G34_M422.cpp b/Marlin/src/gcode/calibrate/G34_M422.cpp index c9645c0d32..8e501326b6 100644 --- a/Marlin/src/gcode/calibrate/G34_M422.cpp +++ b/Marlin/src/gcode/calibrate/G34_M422.cpp @@ -534,7 +534,7 @@ void GcodeSuite::M422() { do_blocking_move_to(safe_pos, MMM_TO_MMS(GANTRY_CALIBRATION_XY_PARK_FEEDRATE)); #endif - const uint16_t move_distance = parser.intval('Z', GANTRY_CALIBRATION_EXTRA_HEIGHT), + const float move_distance = parser.intval('Z', GANTRY_CALIBRATION_EXTRA_HEIGHT), zpounce = ( #if GANTRY_CALIBRATION_DIRECTION == 1 (Z_MAX_POS) - move_distance