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
     #endif
715
     #endif
716
   #endif
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
    * "Tune" submenu
727
    * "Tune" submenu
830
     // Change filament
837
     // Change filament
831
     //
838
     //
832
     #if ENABLED(FILAMENT_CHANGE_FEATURE)
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
     #endif
841
     #endif
835
 
842
 
836
     END_MENU();
843
     END_MENU();

Loading…
Cancel
Save