From cd4c3e90bc5453d3f24ce6ef2d46bf2afc5ee5bc Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 25 Mar 2016 18:36:21 -0700 Subject: [PATCH] Send a busy signal every 10 seconds instead of every 2 --- Marlin/Marlin_main.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index bbd338bc60..4180760891 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -2224,13 +2224,15 @@ void unknown_command_error() { #if ENABLED(HOST_KEEPALIVE_FEATURE) + /** + * Output a "busy" message at regular intervals + * while the machine is not accepting commands. + */ void host_keepalive() { millis_t ms = millis(); if (busy_state != NOT_BUSY) { if (ms < next_busy_signal_ms) return; switch (busy_state) { - case NOT_BUSY: - break; case IN_HANDLER: case IN_PROCESS: SERIAL_ECHO_START; @@ -2246,7 +2248,7 @@ void unknown_command_error() { break; } } - next_busy_signal_ms = ms + 2000UL; + next_busy_signal_ms = ms + 10000UL; // "busy: ..." message every 10s } #endif //HOST_KEEPALIVE_FEATURE