Browse Source

add M17, so the enable stepper button works in repg.

Bernhard Kubicek 13 years ago
parent
commit
7a2d1f5aeb
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      Marlin/Marlin.pde

+ 9
- 0
Marlin/Marlin.pde View File

70
 // M114 - Display current position
70
 // M114 - Display current position
71
 
71
 
72
 //Custom M Codes
72
 //Custom M Codes
73
+// M17  - Enable/Power all stepper motors
74
+// M18  - Disaable all stepper motors; same as M84
73
 // M20  - List SD card
75
 // M20  - List SD card
74
 // M21  - Init SD card
76
 // M21  - Init SD card
75
 // M22  - Release SD card
77
 // M22  - Release SD card
569
 
571
 
570
     switch( (int)code_value() ) 
572
     switch( (int)code_value() ) 
571
     {
573
     {
574
+       case 17:
575
+        LCD_MESSAGEPGM("No move.");
576
+        enable_x(); 
577
+        enable_y(); 
578
+        enable_z(); 
579
+        enable_e(); 
580
+      break;
572
     #ifdef SDSUPPORT
581
     #ifdef SDSUPPORT
573
 
582
 
574
     case 20: // M20 - list SD card
583
     case 20: // M20 - list SD card

Loading…
Cancel
Save