|
@@ -116,8 +116,6 @@ void GcodeSuite::dwell(millis_t time) {
|
116
|
116
|
//
|
117
|
117
|
// Placeholders for non-migrated codes
|
118
|
118
|
//
|
119
|
|
-extern void gcode_M3_M4(bool is_M3);
|
120
|
|
-extern void gcode_M5();
|
121
|
119
|
extern void gcode_M17();
|
122
|
120
|
extern void gcode_M18_M84();
|
123
|
121
|
extern void gcode_M20();
|
|
@@ -417,16 +415,12 @@ void GcodeSuite::process_next_command() {
|
417
|
415
|
#endif // ULTIPANEL
|
418
|
416
|
|
419
|
417
|
#if ENABLED(SPINDLE_LASER_ENABLE)
|
420
|
|
- case 3:
|
421
|
|
- gcode_M3_M4(true); // M3: turn spindle/laser on, set laser/spindle power/speed, set rotation direction CW
|
422
|
|
- break; // synchronizes with movement commands
|
423
|
|
- case 4:
|
424
|
|
- gcode_M3_M4(false); // M4: turn spindle/laser on, set laser/spindle power/speed, set rotation direction CCW
|
425
|
|
- break; // synchronizes with movement commands
|
426
|
|
- case 5:
|
427
|
|
- gcode_M5(); // M5 - turn spindle/laser off
|
428
|
|
- break; // synchronizes with movement commands
|
|
418
|
+ // These synchronize with movement commands...
|
|
419
|
+ case 3: M3_M4(true ); break; // M3: turn spindle/laser on, set laser/spindle power/speed, set rotation direction CW
|
|
420
|
+ case 4: M3_M4(false); break; // M4: turn spindle/laser on, set laser/spindle power/speed, set rotation direction CCW
|
|
421
|
+ case 5: M5(); break; // M5 - turn spindle/laser off
|
429
|
422
|
#endif
|
|
423
|
+
|
430
|
424
|
case 17: // M17: Enable all stepper motors
|
431
|
425
|
gcode_M17();
|
432
|
426
|
break;
|