From a6ce9bf559d963c3cdcb6db7f57a572bc58016ea Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 10 Apr 2022 03:58:58 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Autoreport=20Redundant=20Sensor=20o?= =?UTF-8?q?ption=20(#24014)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Marlin/Configuration_adv.h | 3 +++ Marlin/src/module/temperature.cpp | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Marlin/Configuration_adv.h b/Marlin/Configuration_adv.h index ce6e58834a..def5d06c45 100644 --- a/Marlin/Configuration_adv.h +++ b/Marlin/Configuration_adv.h @@ -3745,6 +3745,9 @@ * Auto-report temperatures with M155 S */ #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 diff --git a/Marlin/src/module/temperature.cpp b/Marlin/src/module/temperature.cpp index 134f7d26e3..94231f6dfc 100644 --- a/Marlin/src/module/temperature.cpp +++ b/Marlin/src/module/temperature.cpp @@ -3911,7 +3911,10 @@ void Temperature::isr() { #if ENABLED(AUTO_REPORT_TEMPERATURES) AutoReporter 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