From ea9ad4e46d9dea69e1e3fe851912f287f12d2ad1 Mon Sep 17 00:00:00 2001 From: GMagician <3684609+GMagician@users.noreply.github.com> Date: Fri, 2 Feb 2018 08:44:48 +0100 Subject: [PATCH] [2.0.x] Fix compile error on delta when NO_WORKSPACE_OFFSETS (#9388) --- Marlin/src/module/motion.cpp | 4 ++-- Marlin/src/module/motion.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Marlin/src/module/motion.cpp b/Marlin/src/module/motion.cpp index a3005202ba..b167365c9a 100644 --- a/Marlin/src/module/motion.cpp +++ b/Marlin/src/module/motion.cpp @@ -1304,7 +1304,7 @@ void homeaxis(const AxisEnum axis) { #endif } // homeaxis() -#if HAS_WORKSPACE_OFFSET || ENABLED(DUAL_X_CARRIAGE) +#if HAS_WORKSPACE_OFFSET || ENABLED(DUAL_X_CARRIAGE) || ENABLED(DELTA) /** * Software endstops can be used to monitor the open end of @@ -1382,7 +1382,7 @@ void homeaxis(const AxisEnum axis) { #endif } -#endif // HAS_WORKSPACE_OFFSET || DUAL_X_CARRIAGE +#endif // HAS_WORKSPACE_OFFSET || DUAL_X_CARRIAGE || DELTA #if HAS_M206_COMMAND /** diff --git a/Marlin/src/module/motion.h b/Marlin/src/module/motion.h index 0c88af4c6c..ea057695b9 100644 --- a/Marlin/src/module/motion.h +++ b/Marlin/src/module/motion.h @@ -318,7 +318,7 @@ void homeaxis(const AxisEnum axis); #endif -#if HAS_WORKSPACE_OFFSET || ENABLED(DUAL_X_CARRIAGE) +#if HAS_WORKSPACE_OFFSET || ENABLED(DUAL_X_CARRIAGE) || ENABLED(DELTA) void update_software_endstops(const AxisEnum axis); #endif