From 00e49de70c47def66808909128badef3adfb6a89 Mon Sep 17 00:00:00 2001 From: DerAndere <26200979+DerAndere1@users.noreply.github.com> Date: Tue, 23 Apr 2024 19:08:31 +0200 Subject: [PATCH] fix compilation with SPINDLE_FEATURE and ABORT_ON_SOFTWARE_ENDSTOPS --- Marlin/src/module/endstops.cpp | 4 ++++ Marlin/src/module/motion.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Marlin/src/module/endstops.cpp b/Marlin/src/module/endstops.cpp index 7a613a16f1d1..68d0077abb5a 100644 --- a/Marlin/src/module/endstops.cpp +++ b/Marlin/src/module/endstops.cpp @@ -58,6 +58,10 @@ #include "probe.h" #endif +#if ANY(SD_ABORT_ON_ENDSTOP_HIT, ABORT_ON_SOFTWARE_ENDSTOP) && HAS_CUTTER + #include "../feature/spindle_laser.h" +#endif + Endstops endstops; // private: diff --git a/Marlin/src/module/motion.cpp b/Marlin/src/module/motion.cpp index d63d0d2e883b..0dd7903a2e44 100644 --- a/Marlin/src/module/motion.cpp +++ b/Marlin/src/module/motion.cpp @@ -74,6 +74,10 @@ #include "../feature/babystep.h" #endif +#if ENABLED(ABORT_ON_SOFTWARE_ENDSTOP) && HAS_CUTTER + #include "../feature/spindle_laser.h" +#endif + #define DEBUG_OUT ENABLED(DEBUG_LEVELING_FEATURE) #include "../core/debug_out.h"