|
@@ -2201,15 +2201,16 @@ void mFilamentItem(uint16_t nTemp, uint16_t nTempBed)
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- lcd_set_cursor(0, 0);
|
|
|
- lcdui_print_temp(LCD_STR_THERMOMETER[0], (int) degHotend(0), (int) degTargetHotend(0));
|
|
|
-
|
|
|
if (!bFilamentWaitingFlag)
|
|
|
{
|
|
|
// First run after the filament preheat selection:
|
|
|
// setup the fixed LCD parts and raise Z as we wait
|
|
|
bFilamentWaitingFlag = true;
|
|
|
|
|
|
+ lcd_clear();
|
|
|
+ lcd_draw_update = 1;
|
|
|
+ lcd_puts_at_P(0, 3, _i(">Cancel")); ////MSG_ c=20 r=1
|
|
|
+
|
|
|
lcd_set_cursor(0, 1);
|
|
|
switch (eFilamentAction)
|
|
|
{
|
|
@@ -2236,9 +2237,11 @@ void mFilamentItem(uint16_t nTemp, uint16_t nTempBed)
|
|
|
// handled earlier
|
|
|
break;
|
|
|
}
|
|
|
- lcd_puts_at_P(0, 3, _i(">Cancel")); ////MSG_ c=20 r=1
|
|
|
}
|
|
|
|
|
|
+ lcd_set_cursor(0, 0);
|
|
|
+ lcdui_print_temp(LCD_STR_THERMOMETER[0], (int) degHotend(0), (int) degTargetHotend(0));
|
|
|
+
|
|
|
if (lcd_clicked())
|
|
|
{
|
|
|
bFilamentWaitingFlag = false;
|
|
@@ -4885,7 +4888,7 @@ void lcd_wizard(WizState state)
|
|
|
lcd_display_message_fullscreen_P(_i("Now I will preheat nozzle for PLA."));
|
|
|
wait_preheat();
|
|
|
//unload current filament
|
|
|
- unload_filament();
|
|
|
+ unload_filament(true);
|
|
|
//load filament
|
|
|
lcd_wizard_load();
|
|
|
setTargetHotend(0, 0); //we are finished, cooldown nozzle
|
|
@@ -6200,13 +6203,14 @@ static void change_extr_menu(){
|
|
|
}
|
|
|
#endif //SNMM
|
|
|
|
|
|
-//unload filament for single material printer (used in M702 gcode)
|
|
|
-void unload_filament()
|
|
|
+// unload filament for single material printer (used in M702 gcode)
|
|
|
+// @param automatic: If true, unload_filament is part of a unload+load sequence (M600)
|
|
|
+void unload_filament(bool automatic)
|
|
|
{
|
|
|
custom_message_type = CustomMsg::FilamentLoading;
|
|
|
lcd_setstatuspgm(_T(MSG_UNLOADING_FILAMENT));
|
|
|
|
|
|
- raise_z_above(MIN_Z_FOR_UNLOAD);
|
|
|
+ raise_z_above(automatic? MIN_Z_FOR_SWAP: MIN_Z_FOR_UNLOAD);
|
|
|
|
|
|
// extr_unload2();
|
|
|
|