From 28d41b48e3d8625e997f3ad99d92a4bfccf9b9c8 Mon Sep 17 00:00:00 2001 From: Josef Pavlik Date: Thu, 6 Oct 2016 10:56:35 +0200 Subject: [PATCH] delta endstop adjustment configurable --- Marlin/Conditionals_post.h | 10 ++++++++++ Marlin/configuration_store.cpp | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Marlin/Conditionals_post.h b/Marlin/Conditionals_post.h index 85da6c3a12..e4c3c1bd03 100644 --- a/Marlin/Conditionals_post.h +++ b/Marlin/Conditionals_post.h @@ -706,4 +706,14 @@ // Stepper pulse duration, in cycles #define STEP_PULSE_CYCLES ((MINIMUM_STEPPER_PULSE) * CYCLES_PER_MICROSECOND) + #ifndef DELTA_ENDSTOP_ADJ_X + #define DELTA_ENDSTOP_ADJ_X 0 + #endif + #ifndef DELTA_ENDSTOP_ADJ_Y + #define DELTA_ENDSTOP_ADJ_Y 0 + #endif + #ifndef DELTA_ENDSTOP_ADJ_Z + #define DELTA_ENDSTOP_ADJ_Z 0 + #endif + #endif // CONDITIONALS_POST_H diff --git a/Marlin/configuration_store.cpp b/Marlin/configuration_store.cpp index 65480a20e2..6543ce8cfc 100644 --- a/Marlin/configuration_store.cpp +++ b/Marlin/configuration_store.cpp @@ -589,7 +589,9 @@ void Config_ResetDefault() { #endif #if ENABLED(DELTA) - endstop_adj[X_AXIS] = endstop_adj[Y_AXIS] = endstop_adj[Z_AXIS] = 0; + endstop_adj[X_AXIS] = DELTA_ENDSTOP_ADJ_X; + endstop_adj[Y_AXIS] = DELTA_ENDSTOP_ADJ_Y; + endstop_adj[Z_AXIS] = DELTA_ENDSTOP_ADJ_Z; delta_radius = DELTA_RADIUS; delta_diagonal_rod = DELTA_DIAGONAL_ROD; delta_segments_per_second = DELTA_SEGMENTS_PER_SECOND;