Commit c106d084 authored by MagoKimbra's avatar MagoKimbra

Add FILAMENTCHANGE_PRINTEROFF

Time for put off the printer during filament change
parent a371a057
......@@ -382,6 +382,7 @@ const unsigned int dropsegments=5; //everything with less than this number of st
#define FILAMENTCHANGE_ZADD 10
#define FILAMENTCHANGE_FIRSTRETRACT -2
#define FILAMENTCHANGE_FINALRETRACT -100
#define FILAMENTCHANGE_PRINTEROFF 5 // Minutes
#endif
#endif
......
......@@ -5374,8 +5374,8 @@ inline void gcode_M503() {
manage_heater();
manage_inactivity(true);
lcd_update();
if (timer.check() && cnt <= 5) beep = true;
if (cnt >= 5 && !sleep) {
if (timer.check() && cnt <= FILAMENTCHANGE_PRINTEROFF) beep = true;
if (cnt >= FILAMENTCHANGE_PRINTEROFF && !sleep) {
disable_all_heaters();
disable_x();
disable_y();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment