Browse Source

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 years ago
parent
commit
d8a8eec6ea
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      Marlin/src/gcode/host/M115.cpp

+ 7
- 0
Marlin/src/gcode/host/M115.cpp View File

@@ -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…
Cancel
Save