Fix G90, G91, M82, M83 rel/abs modes (#15218)
This commit is contained in:
@@ -698,8 +698,6 @@ void MMU2::filament_runout() {
|
||||
}
|
||||
|
||||
LCD_MESSAGEPGM(MSG_MMU2_EJECTING_FILAMENT);
|
||||
const bool saved_e_relative_mode = gcode.axis_relative_modes[E_AXIS];
|
||||
gcode.axis_relative_modes[E_AXIS] = true;
|
||||
|
||||
enable_E0();
|
||||
current_position[E_AXIS] -= MMU2_FILAMENTCHANGE_EJECT_FEED;
|
||||
@@ -735,8 +733,6 @@ void MMU2::filament_runout() {
|
||||
|
||||
BUZZ(200, 404);
|
||||
|
||||
gcode.axis_relative_modes[E_AXIS] = saved_e_relative_mode;
|
||||
|
||||
disable_E0();
|
||||
|
||||
return true;
|
||||
@@ -784,9 +780,6 @@ void MMU2::filament_runout() {
|
||||
planner.synchronize();
|
||||
enable_E0();
|
||||
|
||||
const bool saved_e_relative_mode = gcode.axis_relative_modes[E_AXIS];
|
||||
gcode.axis_relative_modes[E_AXIS] = true;
|
||||
|
||||
const E_Step* step = sequence;
|
||||
|
||||
for (uint8_t i = 0; i < steps; i++) {
|
||||
@@ -804,8 +797,6 @@ void MMU2::filament_runout() {
|
||||
step++;
|
||||
}
|
||||
|
||||
gcode.axis_relative_modes[E_AXIS] = saved_e_relative_mode;
|
||||
|
||||
disable_E0();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user