Fix UNKNOWN_Z_NO_RAISE in G28

Bug introduced in 73fc0778b8
This commit is contained in:
Scott Lahteine 2020-07-29 20:43:35 -05:00
parent 5804761b5d
commit cf1c57a04d

View File

@ -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);