|
@@ -481,13 +481,7 @@ static uint8_t target_extruder;
|
481
|
481
|
|
482
|
482
|
// Extruder offsets
|
483
|
483
|
#if HOTENDS > 1
|
484
|
|
- float hotend_offset[][HOTENDS] = {
|
485
|
|
- HOTEND_OFFSET_X,
|
486
|
|
- HOTEND_OFFSET_Y
|
487
|
|
- #ifdef HOTEND_OFFSET_Z
|
488
|
|
- , HOTEND_OFFSET_Z
|
489
|
|
- #endif
|
490
|
|
- };
|
|
484
|
+ float hotend_offset[XYZ][HOTENDS];
|
491
|
485
|
#endif
|
492
|
486
|
|
493
|
487
|
#if HAS_Z_SERVO_ENDSTOP
|
|
@@ -6129,7 +6123,7 @@ inline void gcode_M211() {
|
6129
|
6123
|
* Z<zoffset> - Available with DUAL_X_CARRIAGE and SWITCHING_EXTRUDER
|
6130
|
6124
|
*/
|
6131
|
6125
|
inline void gcode_M218() {
|
6132
|
|
- if (get_target_extruder_from_command(218)) return;
|
|
6126
|
+ if (get_target_extruder_from_command(218) || target_extruder == 0) return;
|
6133
|
6127
|
|
6134
|
6128
|
if (code_seen('X')) hotend_offset[X_AXIS][target_extruder] = code_value_axis_units(X_AXIS);
|
6135
|
6129
|
if (code_seen('Y')) hotend_offset[Y_AXIS][target_extruder] = code_value_axis_units(Y_AXIS);
|