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
|
#undef AUTO_REPORT_TEMPERATURES
|
||||||
#endif
|
#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
|
* This setting is also used by M109 when trying to calculate
|
||||||
* a ballpark safe margin to prevent wait-forever situation.
|
* 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;
|
extern volatile bool wait_for_user;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if HAS_AUTO_REPORTING
|
||||||
|
extern bool suspend_auto_report;
|
||||||
|
#endif
|
||||||
|
|
||||||
extern float current_position[XYZE], destination[XYZE];
|
extern float current_position[XYZE], destination[XYZE];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -510,6 +510,10 @@ volatile bool wait_for_heatup = true;
|
|||||||
volatile bool wait_for_user = false;
|
volatile bool wait_for_user = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if HAS_AUTO_REPORTING
|
||||||
|
bool suspend_auto_report; // = false
|
||||||
|
#endif
|
||||||
|
|
||||||
const char axis_codes[XYZE] = { 'X', 'Y', 'Z', 'E' };
|
const char axis_codes[XYZE] = { 'X', 'Y', 'Z', 'E' };
|
||||||
|
|
||||||
// Number of characters read in the current line of serial input
|
// Number of characters read in the current line of serial input
|
||||||
@ -13454,10 +13458,6 @@ void idle(
|
|||||||
|
|
||||||
host_keepalive();
|
host_keepalive();
|
||||||
|
|
||||||
#if ENABLED(AUTO_REPORT_TEMPERATURES) && (HAS_TEMP_HOTEND || HAS_TEMP_BED)
|
|
||||||
thermalManager.auto_report_temperatures();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
manage_inactivity(
|
manage_inactivity(
|
||||||
#if ENABLED(ADVANCED_PAUSE_FEATURE)
|
#if ENABLED(ADVANCED_PAUSE_FEATURE)
|
||||||
no_stepper_sleep
|
no_stepper_sleep
|
||||||
@ -13482,10 +13482,17 @@ void idle(
|
|||||||
}
|
}
|
||||||
#endif
|
#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)
|
#if ENABLED(AUTO_REPORT_SD_STATUS)
|
||||||
card.auto_report_sd_status();
|
card.auto_report_sd_status();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Kill all activity and lock the machine.
|
* Kill all activity and lock the machine.
|
||||||
|
Loading…
Reference in New Issue
Block a user