Add suspend_auto_report flag to suppress auto-report
This commit is contained in:
parent
2bf1bbf399
commit
e7d519c898
@ -753,6 +753,8 @@
|
||||
#undef AUTO_REPORT_TEMPERATURES
|
||||
#endif
|
||||
|
||||
#define HAS_AUTO_REPORTING (ENABLED(AUTO_REPORT_TEMPERATURES) || ENABLED(AUTO_REPORT_SD_STATUS))
|
||||
|
||||
/**
|
||||
* This setting is also used by M109 when trying to calculate
|
||||
* a ballpark safe margin to prevent wait-forever situation.
|
||||
|
@ -232,6 +232,10 @@ extern volatile bool wait_for_heatup;
|
||||
extern volatile bool wait_for_user;
|
||||
#endif
|
||||
|
||||
#if HAS_AUTO_REPORTING
|
||||
extern bool suspend_auto_report;
|
||||
#endif
|
||||
|
||||
extern float current_position[XYZE], destination[XYZE];
|
||||
|
||||
/**
|
||||
|
@ -510,6 +510,10 @@ volatile bool wait_for_heatup = true;
|
||||
volatile bool wait_for_user = false;
|
||||
#endif
|
||||
|
||||
#if HAS_AUTO_REPORTING
|
||||
bool suspend_auto_report; // = false
|
||||
#endif
|
||||
|
||||
const char axis_codes[XYZE] = { 'X', 'Y', 'Z', 'E' };
|
||||
|
||||
// Number of characters read in the current line of serial input
|
||||
@ -13454,10 +13458,6 @@ void idle(
|
||||
|
||||
host_keepalive();
|
||||
|
||||
#if ENABLED(AUTO_REPORT_TEMPERATURES) && (HAS_TEMP_HOTEND || HAS_TEMP_BED)
|
||||
thermalManager.auto_report_temperatures();
|
||||
#endif
|
||||
|
||||
manage_inactivity(
|
||||
#if ENABLED(ADVANCED_PAUSE_FEATURE)
|
||||
no_stepper_sleep
|
||||
@ -13482,9 +13482,16 @@ void idle(
|
||||
}
|
||||
#endif
|
||||
|
||||
#if HAS_AUTO_REPORTING
|
||||
if (!suspend_auto_report) {
|
||||
#if ENABLED(AUTO_REPORT_TEMPERATURES)
|
||||
thermalManager.auto_report_temperatures();
|
||||
#endif
|
||||
#if ENABLED(AUTO_REPORT_SD_STATUS)
|
||||
card.auto_report_sd_status();
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user