Tweak use of move_z_after_probing

This commit is contained in:
Scott Lahteine
2018-03-21 01:08:44 -05:00
parent c352954882
commit bc45fb6b13
7 changed files with 14 additions and 9 deletions

View File

@ -465,7 +465,7 @@ bool set_probe_deployed(const bool deploy) {
return false;
}
#ifdef Z_AFTER_PROBING
#if Z_AFTER_PROBING
// After probing move to a preferred Z position
void move_z_after_probing() {
if (current_position[Z_AXIS] != Z_AFTER_PROBING) {

View File

@ -32,10 +32,8 @@
#if HAS_BED_PROBE
extern float zprobe_zoffset;
bool set_probe_deployed(const bool deploy);
#ifdef Z_AFTER_PROBING
#if Z_AFTER_PROBING
void move_z_after_probing();
#else
inline void move_z_after_probing() {}
#endif
enum ProbePtRaise : unsigned char {
PROBE_PT_NONE, // No raise or stow after run_z_probe