Skip to content

Commit

Permalink
Auto Report Redundant Sensor option
Browse files Browse the repository at this point in the history
See #23997
  • Loading branch information
thinkyhead committed Apr 10, 2022
1 parent e2353be commit c8dafc4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Marlin/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -3871,6 +3871,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>
Expand Down
5 changes: 4 additions & 1 deletion Marlin/src/module/temperature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8dafc4

Please sign in to comment.