Browse Source

Fix UNKNOWN_Z_NO_RAISE in G28

Bug introduced in 73fc0778b8
vanilla_fb_2.0.x
Scott Lahteine 4 years ago
parent
commit
95f990a656
  1. 2
      Marlin/src/gcode/calibrate/G28.cpp

2
Marlin/src/gcode/calibrate/G28.cpp

@ -312,7 +312,7 @@ void GcodeSuite::G28() {
#endif #endif
const float z_homing_height = const float z_homing_height =
ENABLED(UNKNOWN_Z_NO_RAISE) && TEST(axis_known_position, Z_AXIS) ENABLED(UNKNOWN_Z_NO_RAISE) && !TEST(axis_known_position, Z_AXIS)
? 0 ? 0
: (parser.seenval('R') ? parser.value_linear_units() : Z_HOMING_HEIGHT); : (parser.seenval('R') ? parser.value_linear_units() : Z_HOMING_HEIGHT);

Loading…
Cancel
Save