|
@@ -5391,13 +5391,6 @@ inline void gcode_M503() {
|
5391
|
5391
|
|
5392
|
5392
|
#if ENABLED(FILAMENTCHANGEENABLE)
|
5393
|
5393
|
|
5394
|
|
- inline void idle2() {
|
5395
|
|
- manage_heater();
|
5396
|
|
- manage_inactivity(true);
|
5397
|
|
- host_keepalive();
|
5398
|
|
- lcd_update();
|
5399
|
|
- }
|
5400
|
|
-
|
5401
|
5394
|
/**
|
5402
|
5395
|
* M600: Pause for filament change
|
5403
|
5396
|
*
|
|
@@ -5484,7 +5477,7 @@ inline void gcode_M503() {
|
5484
|
5477
|
lcd_quick_feedback();
|
5485
|
5478
|
next_tick = ms + 2500; // feedback every 2.5s while waiting
|
5486
|
5479
|
}
|
5487
|
|
- idle2();
|
|
5480
|
+ idle(true);
|
5488
|
5481
|
#else
|
5489
|
5482
|
current_position[E_AXIS] += AUTO_FILAMENT_CHANGE_LENGTH;
|
5490
|
5483
|
destination[E_AXIS] = current_position[E_AXIS];
|
|
@@ -7040,9 +7033,17 @@ void disable_all_steppers() {
|
7040
|
7033
|
/**
|
7041
|
7034
|
* Standard idle routine keeps the machine alive
|
7042
|
7035
|
*/
|
7043
|
|
-void idle() {
|
|
7036
|
+void idle(
|
|
7037
|
+ #if ENABLED(FILAMENTCHANGEENABLE)
|
|
7038
|
+ bool no_stepper_sleep/*=false*/
|
|
7039
|
+ #endif
|
|
7040
|
+) {
|
7044
|
7041
|
manage_heater();
|
7045
|
|
- manage_inactivity();
|
|
7042
|
+ manage_inactivity(
|
|
7043
|
+ #if ENABLED(FILAMENTCHANGEENABLE)
|
|
7044
|
+ no_stepper_sleep
|
|
7045
|
+ #endif
|
|
7046
|
+ );
|
7046
|
7047
|
host_keepalive();
|
7047
|
7048
|
lcd_update();
|
7048
|
7049
|
}
|