Merge pull request #9979 from thinkyhead/bf2_suppress_autoreport

[2.0.x] Capability to suppress auto-reporting
This commit is contained in:
Scott Lahteine 2018-03-07 03:33:40 -06:00 committed by GitHub
commit 9e97c13c6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
55 changed files with 268 additions and 232 deletions

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1410,11 +1415,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -187,6 +187,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
// Inactivity shutdown // Inactivity shutdown
millis_t max_inactive_time = 0, millis_t max_inactive_time = 0,
stepper_inactive_time = (DEFAULT_STEPPER_DEACTIVE_TIME) * 1000UL; stepper_inactive_time = (DEFAULT_STEPPER_DEACTIVE_TIME) * 1000UL;
@ -519,10 +523,6 @@ void idle(
gcode.host_keepalive(); gcode.host_keepalive();
#endif #endif
#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
@ -547,13 +547,20 @@ void idle(
} }
#endif #endif
#if ENABLED(AUTO_REPORT_SD_STATUS)
card.auto_report_sd_status();
#endif
#ifdef HAL_IDLETASK #ifdef HAL_IDLETASK
HAL_idletask(); HAL_idletask();
#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)
card.auto_report_sd_status();
#endif
}
#endif
} }
/** /**

View File

@ -188,6 +188,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
#if ENABLED(AUTO_BED_LEVELING_UBL) #if ENABLED(AUTO_BED_LEVELING_UBL)
typedef struct { double A, B, D; } linear_fit; typedef struct { double A, B, D; } linear_fit;
linear_fit* lsf_linear_fit(double x[], double y[], double z[], const int); linear_fit* lsf_linear_fit(double x[], double y[], double z[], const int);

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1414,11 +1419,6 @@
*/ */
#define EXTENDED_CAPABILITIES_REPORT #define EXTENDED_CAPABILITIES_REPORT
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Disable all Volumetric extrusion options * Disable all Volumetric extrusion options
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1412,11 +1417,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
#define SD_REPRINT_LAST_SELECTED_FILE #define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1410,11 +1415,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -613,6 +613,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1417,11 +1422,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -625,6 +625,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1422,11 +1427,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -614,6 +614,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1411,11 +1416,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -614,6 +614,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1411,11 +1416,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -614,6 +614,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1411,11 +1416,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -614,6 +614,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1411,11 +1416,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -614,6 +614,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1411,11 +1416,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -614,6 +614,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1411,11 +1416,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -619,6 +619,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1416,11 +1421,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -614,6 +614,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1411,11 +1416,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
#define SD_REPRINT_LAST_SELECTED_FILE #define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -612,6 +612,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1409,11 +1414,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -613,6 +613,11 @@
*/ */
//#define SD_REPRINT_LAST_SELECTED_FILE //#define SD_REPRINT_LAST_SELECTED_FILE
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
#endif // SDSUPPORT #endif // SDSUPPORT
/** /**
@ -1410,11 +1415,6 @@
*/ */
#define AUTO_REPORT_TEMPERATURES #define AUTO_REPORT_TEMPERATURES
/**
* Auto-report SdCard status with M27 S<seconds>
*/
//#define AUTO_REPORT_SD_STATUS
/** /**
* Include capabilities in M115 output * Include capabilities in M115 output
*/ */

View File

@ -195,6 +195,10 @@
// 2 : disply of the map data on a RepRap Graphical LCD Panel // 2 : disply of the map data on a RepRap Graphical LCD Panel
void unified_bed_leveling::display_map(const int map_type) { void unified_bed_leveling::display_map(const int map_type) {
#if HAS_AUTO_REPORTING
suspend_auto_report = true;
#endif
constexpr uint8_t spaces = 8 * (GRID_MAX_POINTS_X - 2); constexpr uint8_t spaces = 8 * (GRID_MAX_POINTS_X - 2);
SERIAL_PROTOCOLPGM("\nBed Topography Report"); SERIAL_PROTOCOLPGM("\nBed Topography Report");
@ -259,6 +263,10 @@
serial_echo_xy(GRID_MAX_POINTS_X - 1, 0); serial_echo_xy(GRID_MAX_POINTS_X - 1, 0);
SERIAL_EOL(); SERIAL_EOL();
} }
#if HAS_AUTO_REPORTING
suspend_auto_report = false;
#endif
} }
bool unified_bed_leveling::sanity_check() { bool unified_bed_leveling::sanity_check() {

View File

@ -391,7 +391,7 @@ void GcodeSuite::process_parsed_command() {
KEEPALIVE_STATE(NOT_BUSY); KEEPALIVE_STATE(NOT_BUSY);
return; // "ok" already printed return; // "ok" already printed
#if ENABLED(AUTO_REPORT_TEMPERATURES) && (HAS_TEMP_HOTEND || HAS_TEMP_BED) #if ENABLED(AUTO_REPORT_TEMPERATURES) && HAS_TEMP_SENSOR
case 155: M155(); break; // M155: Set temperature auto-report interval case 155: M155(); break; // M155: Set temperature auto-report interval
#endif #endif

View File

@ -547,7 +547,7 @@ private:
static void M150(); static void M150();
#endif #endif
#if ENABLED(AUTO_REPORT_TEMPERATURES) && (HAS_TEMP_HOTEND || HAS_TEMP_BED) #if ENABLED(AUTO_REPORT_TEMPERATURES) && HAS_TEMP_SENSOR
static void M155(); static void M155();
#endif #endif

View File

@ -37,7 +37,7 @@ void GcodeSuite::M105() {
const int16_t port = command_queue_port[cmd_queue_index_r]; const int16_t port = command_queue_port[cmd_queue_index_r];
#endif #endif
#if HAS_TEMP_HOTEND || HAS_TEMP_BED #if HAS_TEMP_SENSOR
SERIAL_PROTOCOLPGM_P(port, MSG_OK); SERIAL_PROTOCOLPGM_P(port, MSG_OK);
thermalManager.print_heaterstates( thermalManager.print_heaterstates(
#if NUM_SERIAL > 1 #if NUM_SERIAL > 1

View File

@ -22,7 +22,7 @@
#include "../../inc/MarlinConfig.h" #include "../../inc/MarlinConfig.h"
#if ENABLED(AUTO_REPORT_TEMPERATURES) && (HAS_TEMP_HOTEND || HAS_TEMP_BED) #if ENABLED(AUTO_REPORT_TEMPERATURES) && HAS_TEMP_SENSOR
#include "../gcode.h" #include "../gcode.h"
#include "../../module/temperature.h" #include "../../module/temperature.h"
@ -37,4 +37,4 @@ void GcodeSuite::M155() {
} }
#endif // AUTO_REPORT_TEMPERATURES && (HAS_TEMP_HOTEND || HAS_TEMP_BED) #endif // AUTO_REPORT_TEMPERATURES && HAS_TEMP_SENSOR

View File

@ -754,6 +754,7 @@
#define HAS_TEMP_4 (PIN_EXISTS(TEMP_4) && TEMP_SENSOR_4 != 0 && TEMP_SENSOR_4 > -2) #define HAS_TEMP_4 (PIN_EXISTS(TEMP_4) && TEMP_SENSOR_4 != 0 && TEMP_SENSOR_4 > -2)
#define HAS_TEMP_HOTEND (HAS_TEMP_0 || ENABLED(HEATER_0_USES_MAX6675)) #define HAS_TEMP_HOTEND (HAS_TEMP_0 || ENABLED(HEATER_0_USES_MAX6675))
#define HAS_TEMP_BED (PIN_EXISTS(TEMP_BED) && TEMP_SENSOR_BED != 0 && TEMP_SENSOR_BED > -2) #define HAS_TEMP_BED (PIN_EXISTS(TEMP_BED) && TEMP_SENSOR_BED != 0 && TEMP_SENSOR_BED > -2)
#define HAS_TEMP_SENSOR (HAS_TEMP_HOTEND || HAS_TEMP_BED)
// Heaters // Heaters
#define HAS_HEATER_0 (PIN_EXISTS(HEATER_0)) #define HAS_HEATER_0 (PIN_EXISTS(HEATER_0))
@ -816,6 +817,12 @@
#define HAS_DIGIPOTSS (PIN_EXISTS(DIGIPOTSS)) #define HAS_DIGIPOTSS (PIN_EXISTS(DIGIPOTSS))
#define HAS_MOTOR_CURRENT_PWM (PIN_EXISTS(MOTOR_CURRENT_PWM_XY) || PIN_EXISTS(MOTOR_CURRENT_PWM_Z) || PIN_EXISTS(MOTOR_CURRENT_PWM_E)) #define HAS_MOTOR_CURRENT_PWM (PIN_EXISTS(MOTOR_CURRENT_PWM_XY) || PIN_EXISTS(MOTOR_CURRENT_PWM_Z) || PIN_EXISTS(MOTOR_CURRENT_PWM_E))
#if !HAS_TEMP_SENSOR
#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 * 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.

View File

@ -417,7 +417,7 @@ uint8_t Temperature::soft_pwm_amount[HOTENDS],
// Report heater states every 2 seconds // Report heater states every 2 seconds
if (ELAPSED(ms, next_temp_ms)) { if (ELAPSED(ms, next_temp_ms)) {
#if HAS_TEMP_HOTEND || HAS_TEMP_BED #if HAS_TEMP_SENSOR
print_heaterstates(); print_heaterstates();
SERIAL_EOL(); SERIAL_EOL();
#endif #endif
@ -2144,7 +2144,7 @@ void Temperature::isr() {
ENABLE_TEMPERATURE_INTERRUPT(); //re-enable Temperature ISR ENABLE_TEMPERATURE_INTERRUPT(); //re-enable Temperature ISR
} }
#if HAS_TEMP_HOTEND || HAS_TEMP_BED #if HAS_TEMP_SENSOR
#include "../gcode/gcode.h" #include "../gcode/gcode.h"
@ -2251,4 +2251,4 @@ void Temperature::isr() {
#endif // AUTO_REPORT_TEMPERATURES #endif // AUTO_REPORT_TEMPERATURES
#endif // HAS_TEMP_HOTEND || HAS_TEMP_BED #endif // HAS_TEMP_SENSOR

View File

@ -564,7 +564,7 @@ class Temperature {
#endif // HEATER_IDLE_HANDLER #endif // HEATER_IDLE_HANDLER
#if HAS_TEMP_HOTEND || HAS_TEMP_BED #if HAS_TEMP_SENSOR
static void print_heaterstates( static void print_heaterstates(
#if NUM_SERIAL > 1 #if NUM_SERIAL > 1
const int8_t port = -1 const int8_t port = -1