Browse Source

Fix UNKNOWN_Z_NO_RAISE in G28

Bug introduced in 73fc0778b8
Scott Lahteine 5 years ago
parent
commit
cf1c57a04d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/gcode/calibrate/G28.cpp

+ 1
- 1
Marlin/src/gcode/calibrate/G28.cpp View File

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

Loading…
Cancel
Save