Browse Source

Regular handlers for G31 / G32

pull/1/head
Scott Lahteine 8 years ago
parent
commit
3afda99adf
  1. 19
      Marlin/Marlin_main.cpp

19
Marlin/Marlin_main.cpp

@ -3876,6 +3876,20 @@ inline void gcode_G28() {
report_current_position();
}
#if ENABLED(Z_PROBE_SLED)
/**
* G31: Deploy the Z probe
*/
inline void gcode_G31() { deploy_z_probe(); }
/**
* G32: Stow the Z probe
*/
inline void gcode_G32() { stow_z_probe(); }
#endif // Z_PROBE_SLED
#endif // HAS_BED_PROBE
/**
@ -6865,10 +6879,11 @@ void process_next_command() {
#if ENABLED(Z_PROBE_SLED)
case 31: // G31: dock the sled
stow_z_probe();
gcode_G31();
break;
case 32: // G32: undock the sled
deploy_z_probe();
gcode_G32();
break;
#endif // Z_PROBE_SLED

Loading…
Cancel
Save