Browse Source

Fixup M666

Followup to d6df032
Scott Lahteine 6 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,7 +22,7 @@
22 22
 
23 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 27
 #include "../gcode.h"
28 28
 
@@ -67,7 +67,7 @@
67 67
    * M666: Set Dual Endstops offsets for X, Y, and/or Z.
68 68
    *       With no parameters report current offsets.
69 69
    */
70
-  inline void gcode_M666() {
70
+  inline void GcodeSuite::M666() {
71 71
     bool report = true;
72 72
     #if ENABLED(X_DUAL_ENDSTOPS)
73 73
       if (parser.seen('X')) {
@@ -104,4 +104,4 @@
104 104
 
105 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,7 +488,7 @@ void GcodeSuite::process_parsed_command() {
488 488
         case 665: M665(); break;  // M665: Set delta configurations
489 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 492
         case 666: M666(); break;  // M666: Set delta or dual endstop adjustment
493 493
       #endif
494 494
 

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

@@ -701,7 +701,7 @@ private:
701 701
     static void M665();
702 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 705
     static void M666();
706 706
   #endif
707 707
 

Loading…
Cancel
Save