Browse Source

✨ Autoreport Redundant Sensor option (#24014)

Scott Lahteine 2 years ago
parent
commit
cec7836959
No account linked to committer's email address
2 changed files with 7 additions and 1 deletions
  1. 3
    0
      Marlin/Configuration_adv.h
  2. 4
    1
      Marlin/src/module/temperature.cpp

+ 3
- 0
Marlin/Configuration_adv.h View File

@@ -3875,6 +3875,9 @@
3875 3875
  * Auto-report temperatures with M155 S<seconds>
3876 3876
  */
3877 3877
 #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
3878 3881
 
3879 3882
 /**
3880 3883
  * Auto-report position with M154 S<seconds>

+ 4
- 1
Marlin/src/module/temperature.cpp View File

@@ -3948,7 +3948,10 @@ void Temperature::isr() {
3948 3948
 
3949 3949
   #if ENABLED(AUTO_REPORT_TEMPERATURES)
3950 3950
     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
+    }
3952 3955
   #endif
3953 3956
 
3954 3957
   #if HAS_HOTEND && HAS_STATUS_MESSAGE

Loading…
Cancel
Save