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 ...@@ -382,6 +382,7 @@ const unsigned int dropsegments=5; //everything with less than this number of st
#define FILAMENTCHANGE_ZADD 10 #define FILAMENTCHANGE_ZADD 10
#define FILAMENTCHANGE_FIRSTRETRACT -2 #define FILAMENTCHANGE_FIRSTRETRACT -2
#define FILAMENTCHANGE_FINALRETRACT -100 #define FILAMENTCHANGE_FINALRETRACT -100
#define FILAMENTCHANGE_PRINTEROFF 5 // Minutes
#endif #endif
#endif #endif
......
...@@ -5374,8 +5374,8 @@ inline void gcode_M503() { ...@@ -5374,8 +5374,8 @@ inline void gcode_M503() {
manage_heater(); manage_heater();
manage_inactivity(true); manage_inactivity(true);
lcd_update(); lcd_update();
if (timer.check() && cnt <= 5) beep = true; if (timer.check() && cnt <= FILAMENTCHANGE_PRINTEROFF) beep = true;
if (cnt >= 5 && !sleep) { if (cnt >= FILAMENTCHANGE_PRINTEROFF && !sleep) {
disable_all_heaters(); disable_all_heaters();
disable_x(); disable_x();
disable_y(); 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