Finally fix print/pause/resume and M600 filament change.
This commit is contained in:
@@ -2675,7 +2675,7 @@
|
|||||||
#define FILAMENT_CHANGE_FAST_LOAD_LENGTH 538 // (mm) Load length of filament, from extruder gear to nozzle.
|
#define FILAMENT_CHANGE_FAST_LOAD_LENGTH 538 // (mm) Load length of filament, from extruder gear to nozzle.
|
||||||
// For Bowden, the full length of the tube and nozzle.
|
// For Bowden, the full length of the tube and nozzle.
|
||||||
// For direct drive, the full length of the nozzle.
|
// For direct drive, the full length of the nozzle.
|
||||||
// #define ADVANCED_PAUSE_CONTINUOUS_PURGE // Purge continuously up to the purge length until interrupted.
|
#define ADVANCED_PAUSE_CONTINUOUS_PURGE // Purge continuously up to the purge length until interrupted.
|
||||||
#define ADVANCED_PAUSE_PURGE_FEEDRATE 2 // (mm/s) Extrude feedrate (after loading). Should be slower than load feedrate.
|
#define ADVANCED_PAUSE_PURGE_FEEDRATE 2 // (mm/s) Extrude feedrate (after loading). Should be slower than load feedrate.
|
||||||
#define ADVANCED_PAUSE_PURGE_LENGTH 2 // (mm) Length to extrude after loading.
|
#define ADVANCED_PAUSE_PURGE_LENGTH 2 // (mm) Length to extrude after loading.
|
||||||
// Set to 0 for manual extrusion.
|
// Set to 0 for manual extrusion.
|
||||||
@@ -2690,7 +2690,7 @@
|
|||||||
#define FILAMENT_UNLOAD_PURGE_LENGTH 8 // (mm) An unretract is done, then this length is purged.
|
#define FILAMENT_UNLOAD_PURGE_LENGTH 8 // (mm) An unretract is done, then this length is purged.
|
||||||
#define FILAMENT_UNLOAD_PURGE_FEEDRATE 25 // (mm/s) feedrate to purge before unload
|
#define FILAMENT_UNLOAD_PURGE_FEEDRATE 25 // (mm/s) feedrate to purge before unload
|
||||||
|
|
||||||
#define PAUSE_PARK_NOZZLE_TIMEOUT 60 // (seconds) Time limit before the nozzle is turned off for safety.
|
#define PAUSE_PARK_NOZZLE_TIMEOUT 300 // (seconds) Time limit before the nozzle is turned off for safety.
|
||||||
#define FILAMENT_CHANGE_ALERT_BEEPS 10 // Number of alert beeps to play when a response is needed.
|
#define FILAMENT_CHANGE_ALERT_BEEPS 10 // Number of alert beeps to play when a response is needed.
|
||||||
#define PAUSE_PARK_NO_STEPPER_TIMEOUT // Enable for XYZ steppers to stay powered on during filament change.
|
#define PAUSE_PARK_NO_STEPPER_TIMEOUT // Enable for XYZ steppers to stay powered on during filament change.
|
||||||
// #define FILAMENT_CHANGE_RESUME_ON_INSERT // Automatically continue / load filament when runout sensor is triggered again.
|
// #define FILAMENT_CHANGE_RESUME_ON_INSERT // Automatically continue / load filament when runout sensor is triggered again.
|
||||||
|
@@ -576,17 +576,7 @@ void wait_for_confirmation(const bool is_reload/*=false*/, const int8_t max_beep
|
|||||||
IF_DISABLED(PAUSE_REHEAT_FAST_RESUME, wait_for_user = true);
|
IF_DISABLED(PAUSE_REHEAT_FAST_RESUME, wait_for_user = true);
|
||||||
|
|
||||||
nozzle_timed_out = false;
|
nozzle_timed_out = false;
|
||||||
/*
|
|
||||||
#ifdef ANYCUBIC_TOUCHSCREEN
|
|
||||||
if (AnycubicTouchscreen.ai3m_pause_state > 3) {
|
|
||||||
AnycubicTouchscreen.ai3m_pause_state -= 3;
|
|
||||||
#ifdef ANYCUBIC_TFT_DEBUG
|
|
||||||
SERIAL_ECHOPGM(" DEBUG: NTO - AI3M Pause State set to: ", AnycubicTouchscreen.ai3m_pause_state);
|
|
||||||
SERIAL_EOL();
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
*/
|
|
||||||
first_impatient_beep(max_beep_count);
|
first_impatient_beep(max_beep_count);
|
||||||
}
|
}
|
||||||
idle_no_sleep();
|
idle_no_sleep();
|
||||||
|
@@ -44,7 +44,7 @@
|
|||||||
#define CUSTOM_BUILD_VERSION "1.5.0-b4"
|
#define CUSTOM_BUILD_VERSION "1.5.0-b4"
|
||||||
|
|
||||||
#ifndef STRING_DISTRIBUTION_DATE
|
#ifndef STRING_DISTRIBUTION_DATE
|
||||||
#define STRING_DISTRIBUTION_DATE "2023-05-22"
|
#define STRING_DISTRIBUTION_DATE "2023-05-24"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -363,12 +363,14 @@
|
|||||||
// reheat the nozzle
|
// reheat the nozzle
|
||||||
setUserConfirmed();
|
setUserConfirmed();
|
||||||
}
|
}
|
||||||
|
else if (mediaPauseState == AMPAUSESTATE_FILAMENT_PURGING) {
|
||||||
|
setUserConfirmed();
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
mediaPrintingState = AMPRINTSTATE_PRINTING;
|
mediaPrintingState = AMPRINTSTATE_PRINTING;
|
||||||
mediaPauseState = AMPAUSESTATE_NOT_PAUSED;
|
mediaPauseState = AMPAUSESTATE_NOT_PAUSED;
|
||||||
|
|
||||||
SENDLINE_DBG_PGM("J04", "TFT Serial Debug: SD print resumed... J04"); // J04 printing form sd card now
|
SENDLINE_DBG_PGM("J04", "TFT Serial Debug: SD print resumed... J04"); // J04 printing form sd card now
|
||||||
setPauseMenuResponse(PAUSE_RESPONSE_RESUME_PRINT);
|
|
||||||
resumePrint();
|
resumePrint();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -1148,7 +1150,8 @@
|
|||||||
}
|
}
|
||||||
else if (strcmp_P(msg, PSTR("Filament Purging...")) == 0) {
|
else if (strcmp_P(msg, PSTR("Filament Purging...")) == 0) {
|
||||||
mediaPrintingState = AMPRINTSTATE_PAUSED;
|
mediaPrintingState = AMPRINTSTATE_PAUSED;
|
||||||
mediaPauseState = AMPAUSESTATE_PARKING;
|
mediaPauseState = AMPAUSESTATE_FILAMENT_PURGING;
|
||||||
|
|
||||||
// TODO: JBA I don't think J05 just disables the continue button, i think it injects a rogue M25. So taking this out
|
// TODO: JBA I don't think J05 just disables the continue button, i think it injects a rogue M25. So taking this out
|
||||||
// disable continue button
|
// disable continue button
|
||||||
// SENDLINE_DBG_PGM("J05", "TFT Serial Debug: UserConfirm SD Filament Purging... J05"); // J05 printing pause
|
// SENDLINE_DBG_PGM("J05", "TFT Serial Debug: UserConfirm SD Filament Purging... J05"); // J05 printing pause
|
||||||
@@ -1168,12 +1171,6 @@
|
|||||||
// enable continue button
|
// enable continue button
|
||||||
SENDLINE_DBG_PGM("J18", "TFT Serial Debug: UserConfirm SD Reheat done... J18");
|
SENDLINE_DBG_PGM("J18", "TFT Serial Debug: UserConfirm SD Reheat done... J18");
|
||||||
}
|
}
|
||||||
else if (strcmp_P(msg, PSTR("Paused")) == 0) {
|
|
||||||
mediaPrintingState = AMPRINTSTATE_PAUSED;
|
|
||||||
mediaPauseState = AMPAUSESTATE_PAUSED;
|
|
||||||
// enable continue button
|
|
||||||
SENDLINE_DBG_PGM("J18", "TFT Serial Debug: UserConfirm SD Reheat done... J18");
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user