Skip to content

Commit cec7836

Browse files
authored
✨ Autoreport Redundant Sensor option (MarlinFirmware#24014)
1 parent e4a8c69 commit cec7836

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Marlin/Configuration_adv.h

+3
Original file line numberDiff line numberDiff line change
@@ -3875,6 +3875,9 @@
38753875
* Auto-report temperatures with M155 S<seconds>
38763876
*/
38773877
#define AUTO_REPORT_TEMPERATURES
3878+
#if ENABLED(AUTO_REPORT_TEMPERATURES) && TEMP_SENSOR_REDUNDANT
3879+
//#define AUTO_REPORT_REDUNDANT // Include the "R" sensor in the auto-report
3880+
#endif
38783881

38793882
/**
38803883
* Auto-report position with M154 S<seconds>

Marlin/src/module/temperature.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -3948,7 +3948,10 @@ void Temperature::isr() {
39483948

39493949
#if ENABLED(AUTO_REPORT_TEMPERATURES)
39503950
AutoReporter<Temperature::AutoReportTemp> Temperature::auto_reporter;
3951-
void Temperature::AutoReportTemp::report() { print_heater_states(active_extruder); SERIAL_EOL(); }
3951+
void Temperature::AutoReportTemp::report() {
3952+
print_heater_states(active_extruder OPTARG(HAS_TEMP_REDUNDANT, ENABLED(AUTO_REPORT_REDUNDANT)));
3953+
SERIAL_EOL();
3954+
}
39523955
#endif
39533956

39543957
#if HAS_HOTEND && HAS_STATUS_MESSAGE

0 commit comments

Comments
 (0)