|
@@ -5596,49 +5596,6 @@ static void extr_unload_4() {
|
|
|
extr_unload();
|
|
|
}
|
|
|
|
|
|
-//unload filament for single material printer (used in M702 gcode)
|
|
|
-void unload_filament() {
|
|
|
- custom_message = true;
|
|
|
- custom_message_type = 2;
|
|
|
- lcd_setstatuspgm(_T(MSG_UNLOADING_FILAMENT));
|
|
|
-
|
|
|
- // extr_unload2();
|
|
|
-
|
|
|
- current_position[E_AXIS] -= 45;
|
|
|
- plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], 5200 / 60, active_extruder);
|
|
|
- st_synchronize();
|
|
|
- current_position[E_AXIS] -= 15;
|
|
|
- plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], 1000 / 60, active_extruder);
|
|
|
- st_synchronize();
|
|
|
- current_position[E_AXIS] -= 20;
|
|
|
- plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], 1000 / 60, active_extruder);
|
|
|
- st_synchronize();
|
|
|
-
|
|
|
- lcd_display_message_fullscreen_P(_T(MSG_PULL_OUT_FILAMENT));
|
|
|
-
|
|
|
- //disable extruder steppers so filament can be removed
|
|
|
- disable_e0();
|
|
|
- disable_e1();
|
|
|
- disable_e2();
|
|
|
- delay(100);
|
|
|
-
|
|
|
- Sound_MakeSound(e_SOUND_CLASS_Prompt, e_SOUND_TYPE_StandardPrompt);
|
|
|
- uint8_t counterBeep = 0;
|
|
|
- while (!lcd_clicked() && (counterBeep < 50)) {
|
|
|
- delay_keep_alive(100);
|
|
|
- counterBeep++;
|
|
|
- }
|
|
|
- st_synchronize();
|
|
|
- while (lcd_clicked()) delay_keep_alive(100);
|
|
|
-
|
|
|
- lcd_update_enable(true);
|
|
|
-
|
|
|
- lcd_setstatuspgm(_T(WELCOME_MSG));
|
|
|
- custom_message = false;
|
|
|
- custom_message_type = 0;
|
|
|
-
|
|
|
-}
|
|
|
-
|
|
|
static void fil_load_menu()
|
|
|
{
|
|
|
MENU_BEGIN();
|
|
@@ -5686,6 +5643,49 @@ static void change_extr_menu(){
|
|
|
|
|
|
#endif
|
|
|
|
|
|
+//unload filament for single material printer (used in M702 gcode)
|
|
|
+void unload_filament() {
|
|
|
+ custom_message = true;
|
|
|
+ custom_message_type = 2;
|
|
|
+ lcd_setstatuspgm(_T(MSG_UNLOADING_FILAMENT));
|
|
|
+
|
|
|
+ // extr_unload2();
|
|
|
+
|
|
|
+ current_position[E_AXIS] -= 45;
|
|
|
+ plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], 5200 / 60, active_extruder);
|
|
|
+ st_synchronize();
|
|
|
+ current_position[E_AXIS] -= 15;
|
|
|
+ plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], 1000 / 60, active_extruder);
|
|
|
+ st_synchronize();
|
|
|
+ current_position[E_AXIS] -= 20;
|
|
|
+ plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], 1000 / 60, active_extruder);
|
|
|
+ st_synchronize();
|
|
|
+
|
|
|
+ lcd_display_message_fullscreen_P(_T(MSG_PULL_OUT_FILAMENT));
|
|
|
+
|
|
|
+ //disable extruder steppers so filament can be removed
|
|
|
+ disable_e0();
|
|
|
+ disable_e1();
|
|
|
+ disable_e2();
|
|
|
+ delay(100);
|
|
|
+
|
|
|
+ Sound_MakeSound(e_SOUND_CLASS_Prompt, e_SOUND_TYPE_StandardPrompt);
|
|
|
+ uint8_t counterBeep = 0;
|
|
|
+ while (!lcd_clicked() && (counterBeep < 50)) {
|
|
|
+ delay_keep_alive(100);
|
|
|
+ counterBeep++;
|
|
|
+ }
|
|
|
+ st_synchronize();
|
|
|
+ while (lcd_clicked()) delay_keep_alive(100);
|
|
|
+
|
|
|
+ lcd_update_enable(true);
|
|
|
+
|
|
|
+ lcd_setstatuspgm(_T(WELCOME_MSG));
|
|
|
+ custom_message = false;
|
|
|
+ custom_message_type = 0;
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
static void lcd_farm_no()
|
|
|
{
|
|
|
char step = 0;
|