瀏覽代碼

Add THERMAL_PROTECTION capability

Based on #10465

In response to `M115` the firmware reports if Thermal Protection is enabled (1) or not (0). This information can be used by software such as OctoPrint (more precisely the Printer Safety Check plugin) to warn users when Thermal Protection is not enabled in the firmware.

Co-Authored-By: andrivet <sebastien@advtools.com>
Scott Lahteine 7 年之前
父節點
當前提交
d8a8eec6ea
共有 1 個檔案被更改,包括 7 行新增0 行删除
  1. 7
    0
      Marlin/src/gcode/host/M115.cpp

+ 7
- 0
Marlin/src/gcode/host/M115.cpp 查看文件

@@ -146,5 +146,12 @@ void GcodeSuite::M115() {
146 146
       #endif
147 147
     );
148 148
 
149
+    // THERMAL_PROTECTION
150
+    cap_line(PSTR("THERMAL_PROTECTION")
151
+      #if ENABLED(THERMAL_PROTECTION_HOTENDS) && ENABLED(THERMAL_PROTECTION_BED)
152
+        , true
153
+      #endif
154
+    );
155
+
149 156
   #endif // EXTENDED_CAPABILITIES_REPORT
150 157
 }

Loading…
取消
儲存