소스 검색

✨ Autoreport Redundant Sensor option (#24014)

Scott Lahteine 2 년 전
부모
커밋
cec7836959
No account linked to committer's email address
2개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 3
    0
      Marlin/Configuration_adv.h
  2. 4
    1
      Marlin/src/module/temperature.cpp

+ 3
- 0
Marlin/Configuration_adv.h 파일 보기

@@ -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 파일 보기

@@ -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…
취소
저장