Also suspend keepalive messages with suspend_auto_report

This commit is contained in:
Scott Lahteine 2018-03-21 00:26:00 -05:00
parent bc01200495
commit 4eddcf9142
3 changed files with 5 additions and 5 deletions

View file

@ -512,7 +512,7 @@ volatile bool wait_for_heatup = true;
volatile bool wait_for_user = false;
#endif
#if HAS_AUTO_REPORTING
#if HAS_AUTO_REPORTING || ENABLED(HOST_KEEPALIVE_FEATURE)
bool suspend_auto_report; // = false
#endif
@ -3193,7 +3193,7 @@ void gcode_get_destination() {
*/
void host_keepalive() {
const millis_t ms = millis();
if (host_keepalive_interval && busy_state != NOT_BUSY) {
if (!suspend_auto_report && host_keepalive_interval && busy_state != NOT_BUSY) {
if (PENDING(ms, next_busy_signal_ms)) return;
switch (busy_state) {
case IN_HANDLER: