Skip to content

Commit

Permalink
Fix UNKNOWN_Z_NO_RAISE in G28
Browse files Browse the repository at this point in the history
Bug introduced in 73fc077
  • Loading branch information
thinkyhead committed Jul 30, 2020
1 parent 5804761 commit cf1c57a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/gcode/calibrate/G28.cpp
Expand Up @@ -312,7 +312,7 @@ void GcodeSuite::G28() {
#endif

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
: (parser.seenval('R') ? parser.value_linear_units() : Z_HOMING_HEIGHT);

Expand Down

0 comments on commit cf1c57a

Please sign in to comment.