Browse Source

Give instant feedback for filament change

Scott Lahteine 8 years ago
parent
commit
7780052fb3
1 changed files with 8 additions and 1 deletions
  1. 8
    1
      Marlin/ultralcd.cpp

+ 8
- 1
Marlin/ultralcd.cpp View File

@@ -715,6 +715,13 @@ void kill_screen(const char* lcd_msg) {
715 715
     #endif
716 716
   #endif
717 717
 
718
+  #if ENABLED(FILAMENT_CHANGE_FEATURE)
719
+    static void lcd_enqueue_filament_change() {
720
+      lcd_filament_change_show_message(FILAMENT_CHANGE_MESSAGE_INIT);
721
+      enqueue_and_echo_commands_P(PSTR("M600"));
722
+    }
723
+  #endif
724
+
718 725
   /**
719 726
    *
720 727
    * "Tune" submenu
@@ -830,7 +837,7 @@ void kill_screen(const char* lcd_msg) {
830 837
     // Change filament
831 838
     //
832 839
     #if ENABLED(FILAMENT_CHANGE_FEATURE)
833
-       MENU_ITEM(gcode, MSG_FILAMENTCHANGE, PSTR("M600"));
840
+       MENU_ITEM(function, MSG_FILAMENTCHANGE, lcd_enqueue_filament_change);
834 841
     #endif
835 842
 
836 843
     END_MENU();

Loading…
Cancel
Save