From 8b17c4350c6e25eb61e0b867e1f22843c01eeccc Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 27 Nov 2020 15:57:58 -0600 Subject: [PATCH] Cat eye contact lenses --- Marlin/src/feature/tramming.cpp | 6 +++--- Marlin/src/feature/tramming.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Marlin/src/feature/tramming.cpp b/Marlin/src/feature/tramming.cpp index f3c26f40400c6..b04995f40a1eb 100644 --- a/Marlin/src/feature/tramming.cpp +++ b/Marlin/src/feature/tramming.cpp @@ -49,12 +49,12 @@ PGM_P const tramming_point_name[] PROGMEM = { #endif }; -#if ENABLED(ASSISTED_TRAMMING_WAIT_POSITION) +#ifdef ASSISTED_TRAMMING_WAIT_POSITION + // Move to the defined wait position void move_to_tramming_wait_pos() { - // Move XYZ to wait position + constexpr xyz_pos_t wait_pos = ASSISTED_TRAMMING_WAIT_POSITION; if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("Moving away"); - const xyz_pos_t wait_pos = ASSISTED_TRAMMING_WAIT_POSITION; do_blocking_move_to(wait_pos, XY_PROBE_FEEDRATE_MM_S); } diff --git a/Marlin/src/feature/tramming.h b/Marlin/src/feature/tramming.h index fbbb98380a7f1..00c75880c9fc8 100644 --- a/Marlin/src/feature/tramming.h +++ b/Marlin/src/feature/tramming.h @@ -59,7 +59,7 @@ static_assert(_NR_TRAM_NAMES >= G35_PROBE_COUNT, "Define enough TRAMMING_POINT_N extern PGM_P const tramming_point_name[]; -#if ENABLED(ASSISTED_TRAMMING_WAIT_POSITION) +#ifdef ASSISTED_TRAMMING_WAIT_POSITION void move_to_tramming_wait_pos(); #else inline void move_to_tramming_wait_pos() {}