Autoreport Redundant Sensor option (#24014)

This commit is contained in:
Scott Lahteine 2022-04-10 03:58:58 -05:00 committed by Scott Lahteine
parent 21c838cb1b
commit a6ce9bf559
2 changed files with 7 additions and 1 deletions

View File

@ -3745,6 +3745,9 @@
* Auto-report temperatures with M155 S<seconds>
*/
#define AUTO_REPORT_TEMPERATURES
#if ENABLED(AUTO_REPORT_TEMPERATURES) && TEMP_SENSOR_REDUNDANT
//#define AUTO_REPORT_REDUNDANT // Include the "R" sensor in the auto-report
#endif
/**
* Auto-report position with M154 S<seconds>

View File

@ -3911,7 +3911,10 @@ void Temperature::isr() {
#if ENABLED(AUTO_REPORT_TEMPERATURES)
AutoReporter<Temperature::AutoReportTemp> Temperature::auto_reporter;
void Temperature::AutoReportTemp::report() { print_heater_states(active_extruder); SERIAL_EOL(); }
void Temperature::AutoReportTemp::report() {
print_heater_states(active_extruder OPTARG(HAS_TEMP_REDUNDANT, ENABLED(AUTO_REPORT_REDUNDANT)));
SERIAL_EOL();
}
#endif
#if HAS_HOTEND && HAS_STATUS_MESSAGE