|
@@ -163,7 +163,6 @@ volatile bool wait_for_heatup = true;
|
163
|
163
|
#endif
|
164
|
164
|
|
165
|
165
|
// Inactivity shutdown
|
166
|
|
-millis_t previous_cmd_ms = 0;
|
167
|
166
|
static millis_t max_inactive_time = 0;
|
168
|
167
|
static millis_t stepper_inactive_time = (DEFAULT_STEPPER_DEACTIVE_TIME) * 1000UL;
|
169
|
168
|
|
|
@@ -366,16 +365,6 @@ void suicide() {
|
366
|
365
|
***************** GCode Handlers *****************
|
367
|
366
|
**************************************************/
|
368
|
367
|
|
369
|
|
-#if ENABLED(ARC_SUPPORT)
|
370
|
|
- #include "gcode/motion/G2_G3.h"
|
371
|
|
-#endif
|
372
|
|
-
|
373
|
|
-void dwell(millis_t time) {
|
374
|
|
- gcode.refresh_cmd_timeout();
|
375
|
|
- time += previous_cmd_ms;
|
376
|
|
- while (PENDING(millis(), time)) idle();
|
377
|
|
-}
|
378
|
|
-
|
379
|
368
|
#include "gcode/motion/G4.h"
|
380
|
369
|
|
381
|
370
|
#if ENABLED(BEZIER_CURVE_SUPPORT)
|
|
@@ -882,7 +871,7 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
|
882
|
871
|
|
883
|
872
|
const millis_t ms = millis();
|
884
|
873
|
|
885
|
|
- if (max_inactive_time && ELAPSED(ms, previous_cmd_ms + max_inactive_time)) {
|
|
874
|
+ if (max_inactive_time && ELAPSED(ms, gcode.previous_cmd_ms + max_inactive_time)) {
|
886
|
875
|
SERIAL_ERROR_START();
|
887
|
876
|
SERIAL_ECHOLNPAIR(MSG_KILL_INACTIVE_TIME, parser.command_ptr);
|
888
|
877
|
kill(PSTR(MSG_KILLED));
|
|
@@ -895,7 +884,7 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
|
895
|
884
|
#define MOVE_AWAY_TEST true
|
896
|
885
|
#endif
|
897
|
886
|
|
898
|
|
- if (MOVE_AWAY_TEST && stepper_inactive_time && ELAPSED(ms, previous_cmd_ms + stepper_inactive_time)
|
|
887
|
+ if (MOVE_AWAY_TEST && stepper_inactive_time && ELAPSED(ms, gcode.previous_cmd_ms + stepper_inactive_time)
|
899
|
888
|
&& !ignore_stepper_queue && !planner.blocks_queued()) {
|
900
|
889
|
#if ENABLED(DISABLE_INACTIVE_X)
|
901
|
890
|
disable_X();
|
|
@@ -965,7 +954,7 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
|
965
|
954
|
#endif
|
966
|
955
|
|
967
|
956
|
#if ENABLED(EXTRUDER_RUNOUT_PREVENT)
|
968
|
|
- if (ELAPSED(ms, previous_cmd_ms + (EXTRUDER_RUNOUT_SECONDS) * 1000UL)
|
|
957
|
+ if (ELAPSED(ms, gcode.previous_cmd_ms + (EXTRUDER_RUNOUT_SECONDS) * 1000UL)
|
969
|
958
|
&& thermalManager.degHotend(active_extruder) > EXTRUDER_RUNOUT_MINTEMP) {
|
970
|
959
|
#if ENABLED(SWITCHING_EXTRUDER)
|
971
|
960
|
const bool oldstatus = E0_ENABLE_READ;
|