Skip to content

Commit 2990ddf

Browse files
thinkyheadLCh-77
authored andcommitted
✨ Autoreport Redundant Sensor option (MarlinFirmware#24014)
1 parent 354c969 commit 2990ddf

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
@@ -3876,6 +3876,9 @@
38763876
* Auto-report temperatures with M155 S<seconds>
38773877
*/
38783878
#define AUTO_REPORT_TEMPERATURES
3879+
#if ENABLED(AUTO_REPORT_TEMPERATURES) && TEMP_SENSOR_REDUNDANT
3880+
//#define AUTO_REPORT_REDUNDANT // Include the "R" sensor in the auto-report
3881+
#endif
38793882

38803883
/**
38813884
* 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)