Z correction on tool-change for all HAS_MESH (#10199)

This commit is contained in:
Scott Lahteine 2018-03-23 13:12:00 -05:00 committed by GitHub
parent 81d68b2180
commit bb7236a750
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -446,11 +446,11 @@ void tool_change(const uint8_t tmp_extruder, const float fr_mm_s/*=0.0*/, bool n
hotend_offset[Y_AXIS][tmp_extruder] - hotend_offset[Y_AXIS][active_extruder] hotend_offset[Y_AXIS][tmp_extruder] - hotend_offset[Y_AXIS][active_extruder]
}; };
#if ENABLED(MESH_BED_LEVELING) #if HAS_MESH
if (planner.leveling_active) { if (planner.leveling_active) {
#if ENABLED(DEBUG_LEVELING_FEATURE) #if ENABLED(DEBUG_LEVELING_FEATURE)
if (DEBUGGING(LEVELING)) SERIAL_ECHOPAIR("Z before MBL: ", current_position[Z_AXIS]); if (DEBUGGING(LEVELING)) SERIAL_ECHOPAIR("Z before: ", current_position[Z_AXIS]);
#endif #endif
float x2 = current_position[X_AXIS] + xydiff[X_AXIS], float x2 = current_position[X_AXIS] + xydiff[X_AXIS],
y2 = current_position[Y_AXIS] + xydiff[Y_AXIS], y2 = current_position[Y_AXIS] + xydiff[Y_AXIS],
@ -464,7 +464,7 @@ void tool_change(const uint8_t tmp_extruder, const float fr_mm_s/*=0.0*/, bool n
#endif #endif
} }
#endif // MESH_BED_LEVELING #endif // HAS_MESH
#endif // !HAS_ABL #endif // !HAS_ABL