Fix Host Keepalive serial target (#21283)

Co-authored-by: Scott Lahteine <github@thinkyhead.com>
This commit is contained in:
Victor Oliveira
2021-03-08 04:11:37 -03:00
committed by GitHub
parent aa054471f2
commit 1b9ff68f8c
6 changed files with 17 additions and 26 deletions

View File

@@ -1067,6 +1067,7 @@ void GcodeSuite::process_subcommands_now(char * gcode) {
static millis_t next_busy_signal_ms = 0;
if (!autoreport_paused && host_keepalive_interval && busy_state != NOT_BUSY) {
if (PENDING(ms, next_busy_signal_ms)) return;
PORT_REDIRECT(SERIAL_ALL);
switch (busy_state) {
case IN_HANDLER:
case IN_PROCESS: