Browse Source

Fixup M666

Followup to d6df032
Scott Lahteine 7 years ago
parent
commit
f003173752
3 changed files with 5 additions and 5 deletions
  1. 3
    3
      Marlin/src/gcode/calibrate/M666.cpp
  2. 1
    1
      Marlin/src/gcode/gcode.cpp
  3. 1
    1
      Marlin/src/gcode/gcode.h

+ 3
- 3
Marlin/src/gcode/calibrate/M666.cpp View File

22
 
22
 
23
 #include "../../inc/MarlinConfig.h"
23
 #include "../../inc/MarlinConfig.h"
24
 
24
 
25
-#if ENABLED(DELTA) || ENABLED(Z_DUAL_ENDSTOPS)
25
+#if ENABLED(DELTA) || ENABLED(X_DUAL_ENDSTOPS) || ENABLED(Y_DUAL_ENDSTOPS) || ENABLED(Z_DUAL_ENDSTOPS)
26
 
26
 
27
 #include "../gcode.h"
27
 #include "../gcode.h"
28
 
28
 
67
    * M666: Set Dual Endstops offsets for X, Y, and/or Z.
67
    * M666: Set Dual Endstops offsets for X, Y, and/or Z.
68
    *       With no parameters report current offsets.
68
    *       With no parameters report current offsets.
69
    */
69
    */
70
-  inline void gcode_M666() {
70
+  inline void GcodeSuite::M666() {
71
     bool report = true;
71
     bool report = true;
72
     #if ENABLED(X_DUAL_ENDSTOPS)
72
     #if ENABLED(X_DUAL_ENDSTOPS)
73
       if (parser.seen('X')) {
73
       if (parser.seen('X')) {
104
 
104
 
105
 #endif // X_DUAL_ENDSTOPS || Y_DUAL_ENDSTOPS || Z_DUAL_ENDSTOPS
105
 #endif // X_DUAL_ENDSTOPS || Y_DUAL_ENDSTOPS || Z_DUAL_ENDSTOPS
106
 
106
 
107
-#endif // DELTA || Z_DUAL_ENDSTOPS
107
+#endif // DELTA || X_DUAL_ENDSTOPS || Y_DUAL_ENDSTOPS || Z_DUAL_ENDSTOPS

+ 1
- 1
Marlin/src/gcode/gcode.cpp View File

488
         case 665: M665(); break;  // M665: Set delta configurations
488
         case 665: M665(); break;  // M665: Set delta configurations
489
       #endif
489
       #endif
490
 
490
 
491
-      #if ENABLED(DELTA) || ENABLED(Z_DUAL_ENDSTOPS)
491
+      #if ENABLED(DELTA) || ENABLED(X_DUAL_ENDSTOPS) || ENABLED(Y_DUAL_ENDSTOPS) || ENABLED(Z_DUAL_ENDSTOPS)
492
         case 666: M666(); break;  // M666: Set delta or dual endstop adjustment
492
         case 666: M666(); break;  // M666: Set delta or dual endstop adjustment
493
       #endif
493
       #endif
494
 
494
 

+ 1
- 1
Marlin/src/gcode/gcode.h View File

701
     static void M665();
701
     static void M665();
702
   #endif
702
   #endif
703
 
703
 
704
-  #if ENABLED(DELTA) || ENABLED(Z_DUAL_ENDSTOPS)
704
+  #if ENABLED(DELTA) || ENABLED(X_DUAL_ENDSTOPS) || ENABLED(Y_DUAL_ENDSTOPS) || ENABLED(Z_DUAL_ENDSTOPS)
705
     static void M666();
705
     static void M666();
706
   #endif
706
   #endif
707
 
707
 

Loading…
Cancel
Save