|
|
|
|
263
|
static millis_t stepper_inactive_time = DEFAULT_STEPPER_DEACTIVE_TIME * 1000L;
|
263
|
static millis_t stepper_inactive_time = DEFAULT_STEPPER_DEACTIVE_TIME * 1000L;
|
264
|
millis_t print_job_start_ms = 0; ///< Print job start time
|
264
|
millis_t print_job_start_ms = 0; ///< Print job start time
|
265
|
millis_t print_job_stop_ms = 0; ///< Print job stop time
|
265
|
millis_t print_job_stop_ms = 0; ///< Print job stop time
|
266
|
-static millis_t last_command_time = 0;
|
|
|
267
|
static uint8_t target_extruder;
|
266
|
static uint8_t target_extruder;
|
268
|
bool no_wait_for_cooling = true;
|
267
|
bool no_wait_for_cooling = true;
|
269
|
bool target_direction;
|
268
|
bool target_direction;
|
|
|
|
|
725
|
|
724
|
|
726
|
if (drain_queued_commands_P()) return; // priority is given to non-serial commands
|
725
|
if (drain_queued_commands_P()) return; // priority is given to non-serial commands
|
727
|
|
726
|
|
|
|
727
|
+ static millis_t last_command_time = 0;
|
728
|
millis_t ms = millis();
|
728
|
millis_t ms = millis();
|
729
|
|
729
|
|
730
|
if (!MYSERIAL.available() && commands_in_queue == 0 && ms - last_command_time > 1000) {
|
730
|
if (!MYSERIAL.available() && commands_in_queue == 0 && ms - last_command_time > 1000) {
|