Browse Source

🚸 M115 spindle/laser (#24681)

Gurmeet Athwal 2 years ago
parent
commit
25736abc0f
No account linked to committer's email address
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

130
     cap_line(F("TOGGLE_LIGHTS"), ENABLED(CASE_LIGHT_ENABLE));
130
     cap_line(F("TOGGLE_LIGHTS"), ENABLED(CASE_LIGHT_ENABLE));
131
     cap_line(F("CASE_LIGHT_BRIGHTNESS"), TERN0(CASE_LIGHT_ENABLE, caselight.has_brightness()));
131
     cap_line(F("CASE_LIGHT_BRIGHTNESS"), TERN0(CASE_LIGHT_ENABLE, caselight.has_brightness()));
132
 
132
 
133
+    // SPINDLE AND LASER CONTROL (M3, M4, M5)
134
+    #if ENABLED(SPINDLE_FEATURE)
135
+      cap_line(F("SPINDLE"), true);
136
+    #elif ENABLED(SPINDLE_FEATURE)
137
+      cap_line(F("LASER"), true);
138
+    #endif
139
+
133
     // EMERGENCY_PARSER (M108, M112, M410, M876)
140
     // EMERGENCY_PARSER (M108, M112, M410, M876)
134
     cap_line(F("EMERGENCY_PARSER"), ENABLED(EMERGENCY_PARSER));
141
     cap_line(F("EMERGENCY_PARSER"), ENABLED(EMERGENCY_PARSER));
135
 
142
 

Loading…
Cancel
Save