|
@@ -2224,13 +2224,15 @@ void unknown_command_error() {
|
2224
|
2224
|
|
2225
|
2225
|
#if ENABLED(HOST_KEEPALIVE_FEATURE)
|
2226
|
2226
|
|
|
2227
|
+ /**
|
|
2228
|
+ * Output a "busy" message at regular intervals
|
|
2229
|
+ * while the machine is not accepting commands.
|
|
2230
|
+ */
|
2227
|
2231
|
void host_keepalive() {
|
2228
|
2232
|
millis_t ms = millis();
|
2229
|
2233
|
if (busy_state != NOT_BUSY) {
|
2230
|
2234
|
if (ms < next_busy_signal_ms) return;
|
2231
|
2235
|
switch (busy_state) {
|
2232
|
|
- case NOT_BUSY:
|
2233
|
|
- break;
|
2234
|
2236
|
case IN_HANDLER:
|
2235
|
2237
|
case IN_PROCESS:
|
2236
|
2238
|
SERIAL_ECHO_START;
|
|
@@ -2246,7 +2248,7 @@ void unknown_command_error() {
|
2246
|
2248
|
break;
|
2247
|
2249
|
}
|
2248
|
2250
|
}
|
2249
|
|
- next_busy_signal_ms = ms + 2000UL;
|
|
2251
|
+ next_busy_signal_ms = ms + 10000UL; // "busy: ..." message every 10s
|
2250
|
2252
|
}
|
2251
|
2253
|
|
2252
|
2254
|
#endif //HOST_KEEPALIVE_FEATURE
|