From 0d269261e4cd48768d07b6b40c05099caa8332a7 Mon Sep 17 00:00:00 2001 From: Robert Pelnar Date: Wed, 10 Jan 2018 18:50:16 +0100 Subject: [PATCH] PFW-110 - load filament - beep when loading finished. --- Firmware/Marlin_main.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index 7240e7a6..51194ad6 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -2153,6 +2153,10 @@ void gcode_M701() plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], 100 / 60, active_extruder); //slow sequence st_synchronize(); + tone(BEEPER, 500); + delay_keep_alive(50); + noTone(BEEPER); + if (!farm_mode && loading_flag) { bool clean = lcd_show_fullscreen_message_yes_no_and_wait_P(MSG_FILAMENT_CLEAN, false, true); @@ -2175,6 +2179,7 @@ void gcode_M701() custom_message = false; custom_message_type = 0; #endif + } void process_commands() @@ -5687,13 +5692,15 @@ case 404: //M404 Enter the nominal filament width (3mm, 1.75mm ) N<3.0> or disp target[E_AXIS]+= FILAMENTCHANGE_FINALFEED ; plan_buffer_line(target[X_AXIS], target[Y_AXIS], target[Z_AXIS], target[E_AXIS], FILAMENTCHANGE_EXFEED, active_extruder); - - - //Wait for user to check the state lcd_change_fil_state = 0; lcd_loading_filament(); - while ((lcd_change_fil_state == 0)||(lcd_change_fil_state != 1)){ + + tone(BEEPER, 500); + delay_keep_alive(50); + noTone(BEEPER); + + while ((lcd_change_fil_state == 0)||(lcd_change_fil_state != 1)){ lcd_change_fil_state = 0; KEEPALIVE_STATE(PAUSED_FOR_USER); lcd_alright();