Browse Source

Regular handlers for G31 / G32

Scott Lahteine 9 years ago
parent
commit
3afda99adf
1 changed files with 17 additions and 2 deletions
  1. 17
    2
      Marlin/Marlin_main.cpp

+ 17
- 2
Marlin/Marlin_main.cpp View File

3876
     report_current_position();
3876
     report_current_position();
3877
   }
3877
   }
3878
 
3878
 
3879
+  #if ENABLED(Z_PROBE_SLED)
3880
+
3881
+    /**
3882
+     * G31: Deploy the Z probe
3883
+     */
3884
+    inline void gcode_G31() { deploy_z_probe(); }
3885
+
3886
+    /**
3887
+     * G32: Stow the Z probe
3888
+     */
3889
+    inline void gcode_G32() { stow_z_probe(); }
3890
+
3891
+  #endif // Z_PROBE_SLED
3892
+
3879
 #endif // HAS_BED_PROBE
3893
 #endif // HAS_BED_PROBE
3880
 
3894
 
3881
 /**
3895
 /**
6865
         #if ENABLED(Z_PROBE_SLED)
6879
         #if ENABLED(Z_PROBE_SLED)
6866
 
6880
 
6867
             case 31: // G31: dock the sled
6881
             case 31: // G31: dock the sled
6868
-              stow_z_probe();
6882
+              gcode_G31();
6869
               break;
6883
               break;
6884
+
6870
             case 32: // G32: undock the sled
6885
             case 32: // G32: undock the sled
6871
-              deploy_z_probe();
6886
+              gcode_G32();
6872
               break;
6887
               break;
6873
 
6888
 
6874
         #endif // Z_PROBE_SLED
6889
         #endif // Z_PROBE_SLED

Loading…
Cancel
Save