Skip to content

Commit

Permalink
✨ Autoreport Redundant Sensor option (MarlinFirmware#24014)
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead authored Apr 10, 2022
1 parent e4a8c69 commit cec7836
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 @@ -3875,6 +3875,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 @@ -3948,7 +3948,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 cec7836

Please sign in to comment.