Browse Source

Merge pull request #1303 from PavelSindler/m600_idler

M600: move extruder to the left to make space for idler opening
PavelSindler 6 years ago
parent
commit
7e43b15b54
1 changed files with 11 additions and 2 deletions
  1. 11 2
      Firmware/Marlin_main.cpp

+ 11 - 2
Firmware/Marlin_main.cpp

@@ -2975,8 +2975,17 @@ static void gcode_M600(bool automatic, float x_position, float y_position, float
         lcd_change_fil_state = lcd_show_fullscreen_message_yes_no_and_wait_P(_i("Was filament unload successful?"),
                 false, true); ////MSG_UNLOAD_SUCCESSFUL c=20 r=2
         if (lcd_change_fil_state == 0)
-            lcd_show_fullscreen_message_and_wait_P(_i("Please open idler and remove filament manually."));////MSG_CHECK_IDLER c=20 r=4
-        lcd_update_enable(true);
+        {
+			lcd_clear();
+			lcd_set_cursor(0, 2);
+			lcd_puts_P(_T(MSG_PLEASE_WAIT));
+			current_position[X_AXIS] -= 100;
+			plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS],
+				current_position[E_AXIS], FILAMENTCHANGE_XYFEED, active_extruder);
+			st_synchronize();
+			lcd_show_fullscreen_message_and_wait_P(_i("Please open idler and remove filament manually."));////MSG_CHECK_IDLER c=20 r=4
+			lcd_update_enable(true);
+        }
     }
 
     if (mmu_enabled)