Allow Z_AFTER_PROBING to be 0
This commit is contained in:
parent
63e4afc910
commit
59fda986ea
7 changed files with 7 additions and 7 deletions
|
@ -756,7 +756,7 @@
|
||||||
|
|
||||||
STOW_PROBE();
|
STOW_PROBE();
|
||||||
|
|
||||||
#if Z_AFTER_PROBING
|
#ifdef Z_AFTER_PROBING
|
||||||
move_z_after_probing();
|
move_z_after_probing();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -965,7 +965,7 @@ void GcodeSuite::G29() {
|
||||||
if (planner.leveling_active)
|
if (planner.leveling_active)
|
||||||
SYNC_PLAN_POSITION_KINEMATIC();
|
SYNC_PLAN_POSITION_KINEMATIC();
|
||||||
|
|
||||||
#if HAS_BED_PROBE && Z_AFTER_PROBING
|
#if HAS_BED_PROBE && defined(Z_AFTER_PROBING)
|
||||||
move_z_after_probing();
|
move_z_after_probing();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -312,7 +312,7 @@ void GcodeSuite::G28(const bool always_home_all) {
|
||||||
HOMEAXIS(Z);
|
HOMEAXIS(Z);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HOMING_Z_WITH_PROBE && Z_AFTER_PROBING
|
#if HOMING_Z_WITH_PROBE && defined(Z_AFTER_PROBING)
|
||||||
move_z_after_probing();
|
move_z_after_probing();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@ void GcodeSuite::G30() {
|
||||||
|
|
||||||
clean_up_after_endstop_or_probe_move();
|
clean_up_after_endstop_or_probe_move();
|
||||||
|
|
||||||
#if Z_AFTER_PROBING
|
#ifdef Z_AFTER_PROBING
|
||||||
if (raise_after == PROBE_PT_STOW) move_z_after_probing();
|
if (raise_after == PROBE_PT_STOW) move_z_after_probing();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ void GcodeSuite::M401() {
|
||||||
*/
|
*/
|
||||||
void GcodeSuite::M402() {
|
void GcodeSuite::M402() {
|
||||||
STOW_PROBE();
|
STOW_PROBE();
|
||||||
#if Z_AFTER_PROBING
|
#ifdef Z_AFTER_PROBING
|
||||||
move_z_after_probing();
|
move_z_after_probing();
|
||||||
#endif
|
#endif
|
||||||
report_current_position();
|
report_current_position();
|
||||||
|
|
|
@ -465,7 +465,7 @@ bool set_probe_deployed(const bool deploy) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if Z_AFTER_PROBING
|
#ifdef Z_AFTER_PROBING
|
||||||
// After probing move to a preferred Z position
|
// After probing move to a preferred Z position
|
||||||
void move_z_after_probing() {
|
void move_z_after_probing() {
|
||||||
if (current_position[Z_AXIS] != Z_AFTER_PROBING) {
|
if (current_position[Z_AXIS] != Z_AFTER_PROBING) {
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
#if HAS_BED_PROBE
|
#if HAS_BED_PROBE
|
||||||
extern float zprobe_zoffset;
|
extern float zprobe_zoffset;
|
||||||
bool set_probe_deployed(const bool deploy);
|
bool set_probe_deployed(const bool deploy);
|
||||||
#if Z_AFTER_PROBING
|
#ifdef Z_AFTER_PROBING
|
||||||
void move_z_after_probing();
|
void move_z_after_probing();
|
||||||
#endif
|
#endif
|
||||||
enum ProbePtRaise : unsigned char {
|
enum ProbePtRaise : unsigned char {
|
||||||
|
|
Reference in a new issue