Regular handlers for G31 / G32

This commit is contained in:
Scott Lahteine 2016-06-23 17:04:13 -07:00
parent 6803c8e37e
commit 3afda99adf

View file

@ -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