Skip to content

Commit

Permalink
Give instant feedback for filament change
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Nov 7, 2016
1 parent 5aee8d8 commit 7780052
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Marlin/ultralcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,13 @@ void kill_screen(const char* lcd_msg) {
#endif
#endif

#if ENABLED(FILAMENT_CHANGE_FEATURE)
static void lcd_enqueue_filament_change() {
lcd_filament_change_show_message(FILAMENT_CHANGE_MESSAGE_INIT);
enqueue_and_echo_commands_P(PSTR("M600"));
}
#endif

/**
*
* "Tune" submenu
Expand Down Expand Up @@ -830,7 +837,7 @@ void kill_screen(const char* lcd_msg) {
// Change filament
//
#if ENABLED(FILAMENT_CHANGE_FEATURE)
MENU_ITEM(gcode, MSG_FILAMENTCHANGE, PSTR("M600"));
MENU_ITEM(function, MSG_FILAMENTCHANGE, lcd_enqueue_filament_change);
#endif

END_MENU();
Expand Down

0 comments on commit 7780052

Please sign in to comment.