Browse Source

Enable M401 and M402 for deltas with allen key z-probes.

maverikou 10 years ago
parent
commit
424c747fb3
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp View File

4083
  */
4083
  */
4084
 inline void gcode_M400() { st_synchronize(); }
4084
 inline void gcode_M400() { st_synchronize(); }
4085
 
4085
 
4086
-#if defined(ENABLE_AUTO_BED_LEVELING) && defined(SERVO_ENDSTOPS) && not defined(Z_PROBE_SLED)
4086
+#if defined(ENABLE_AUTO_BED_LEVELING) && (defined(SERVO_ENDSTOPS) || defined(Z_PROBE_ALLEN_KEY)) && not defined(Z_PROBE_SLED)
4087
 
4087
 
4088
   /**
4088
   /**
4089
    * M401: Engage Z Servo endstop if available
4089
    * M401: Engage Z Servo endstop if available
4940
         gcode_M400();
4940
         gcode_M400();
4941
         break;
4941
         break;
4942
 
4942
 
4943
-      #if defined(ENABLE_AUTO_BED_LEVELING) && defined(SERVO_ENDSTOPS) && not defined(Z_PROBE_SLED)
4943
+      #if defined(ENABLE_AUTO_BED_LEVELING) && (defined(SERVO_ENDSTOPS) || defined(Z_PROBE_ALLEN_KEY)) && not defined(Z_PROBE_SLED)
4944
         case 401:
4944
         case 401:
4945
           gcode_M401();
4945
           gcode_M401();
4946
           break;
4946
           break;

Loading…
Cancel
Save