Skip to content
Snippets Groups Projects
Commit 28d41b48 authored by Josef Pavlik's avatar Josef Pavlik Committed by Scott Lahteine
Browse files

delta endstop adjustment configurable

parent fc93796e
Branches
Tags
No related merge requests found
......@@ -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
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment