|
@@ -187,6 +187,10 @@ volatile bool wait_for_heatup = true;
|
187
|
187
|
volatile bool wait_for_user = false;
|
188
|
188
|
#endif
|
189
|
189
|
|
|
190
|
+#if HAS_AUTO_REPORTING
|
|
191
|
+ bool suspend_auto_report; // = false
|
|
192
|
+#endif
|
|
193
|
+
|
190
|
194
|
// Inactivity shutdown
|
191
|
195
|
millis_t max_inactive_time = 0,
|
192
|
196
|
stepper_inactive_time = (DEFAULT_STEPPER_DEACTIVE_TIME) * 1000UL;
|
|
@@ -519,10 +523,6 @@ void idle(
|
519
|
523
|
gcode.host_keepalive();
|
520
|
524
|
#endif
|
521
|
525
|
|
522
|
|
- #if ENABLED(AUTO_REPORT_TEMPERATURES) && HAS_TEMP_SENSOR
|
523
|
|
- thermalManager.auto_report_temperatures();
|
524
|
|
- #endif
|
525
|
|
-
|
526
|
526
|
manage_inactivity(
|
527
|
527
|
#if ENABLED(ADVANCED_PAUSE_FEATURE)
|
528
|
528
|
no_stepper_sleep
|
|
@@ -547,13 +547,20 @@ void idle(
|
547
|
547
|
}
|
548
|
548
|
#endif
|
549
|
549
|
|
550
|
|
- #if ENABLED(AUTO_REPORT_SD_STATUS)
|
551
|
|
- card.auto_report_sd_status();
|
552
|
|
- #endif
|
553
|
|
-
|
554
|
550
|
#ifdef HAL_IDLETASK
|
555
|
551
|
HAL_idletask();
|
556
|
552
|
#endif
|
|
553
|
+
|
|
554
|
+ #if HAS_AUTO_REPORTING
|
|
555
|
+ if (!suspend_auto_report) {
|
|
556
|
+ #if ENABLED(AUTO_REPORT_TEMPERATURES)
|
|
557
|
+ thermalManager.auto_report_temperatures();
|
|
558
|
+ #endif
|
|
559
|
+ #if ENABLED(AUTO_REPORT_SD_STATUS)
|
|
560
|
+ card.auto_report_sd_status();
|
|
561
|
+ #endif
|
|
562
|
+ }
|
|
563
|
+ #endif
|
557
|
564
|
}
|
558
|
565
|
|
559
|
566
|
/**
|