diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index baa8c2f061..0707492760 100755 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -1349,7 +1349,6 @@ void update_software_endstops(AxisEnum axis) { float offs = LOGICAL_POSITION(0, axis); #if ENABLED(DUAL_X_CARRIAGE) - bool did_update = false; if (axis == X_AXIS) { // In Dual X mode hotend_offset[X] is T1's home position diff --git a/Marlin/planner.h b/Marlin/planner.h index 3ef15ee211..15cd85258e 100644 --- a/Marlin/planner.h +++ b/Marlin/planner.h @@ -348,11 +348,11 @@ class Planner { static void set_position_mm(const AxisEnum axis, const float &v); static FORCE_INLINE void set_z_position_mm(const float &z) { set_position_mm(Z_AXIS, z); } static FORCE_INLINE void set_e_position_mm(const float &e) { - set_position_mm((AxisEnum)E_AXIS + set_position_mm(AxisEnum(E_AXIS #if ENABLED(DISTINCT_E_FACTORS) + active_extruder #endif - , e); + ), e); } /**