From 92ac133f2b6c788636ec3f57bb8dd95d81c14d23 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 20 May 2016 15:48:27 -0700 Subject: [PATCH] Conditionals and Sanity Check for SINGLENOZZLE --- Marlin/Conditionals.h | 10 ++++++++++ Marlin/SanityCheck.h | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Marlin/Conditionals.h b/Marlin/Conditionals.h index 4583a0a5fb..386f836d22 100644 --- a/Marlin/Conditionals.h +++ b/Marlin/Conditionals.h @@ -539,6 +539,16 @@ #define ARRAY_BY_EXTRUDERS1(v1) ARRAY_BY_EXTRUDERS(v1, v1, v1, v1) + /** + * With SINGLENOZZLE all "extruders" are in the same place + */ + #if ENABLED(SINGLENOZZLE) + #undef EXTRUDER_OFFSET_X + #undef EXTRUDER_OFFSET_Y + #define EXTRUDER_OFFSET_X { 0 } + #define EXTRUDER_OFFSET_Y { 0 } + #endif + /** * Z_DUAL_ENDSTOPS endstop reassignment */ diff --git a/Marlin/SanityCheck.h b/Marlin/SanityCheck.h index c499c2c967..3a6e6a895c 100644 --- a/Marlin/SanityCheck.h +++ b/Marlin/SanityCheck.h @@ -149,7 +149,9 @@ #error "EXTRUDERS must be 1 with Z_DUAL_STEPPER_DRIVERS." #endif -#endif // EXTRUDERS > 1 +#elif ENABLED(SINGLENOZZLE) + #error "SINGLENOZZLE requires 2 or more EXTRUDERS." +#endif /** * Limited number of servos