Z_DUAL_ENDSTOP - make offset a configuration item

The offset for Z_DUAL_ENDSTOP (z_endstop_adj) is already in Marlin.
This PR just makes it a configuration item.

z_endstop_adj is initialized in two places so both had to be modified.
This commit is contained in:
Scott Lahteine authored and Bob-the-Kuhn committed 2017-04-06 15:57:10 -05:00
1 parent 3b6333c613
commit 62cbaa302e
19 files changed
+23 -1

No files matched your search

+5 -1
View File
@@ -963,7 +963,11 @@ void Config_ResetDefault() {
COPY(delta_diagonal_rod_trim, drt);
COPY(delta_tower_angle_trim, dta);
#elif ENABLED(Z_DUAL_ENDSTOPS)
z_endstop_adj = 0;
#if defined(Z_DUAL_ENDSTOPS_ADJUSTMENT)
float z_endstop_adj = Z_DUAL_ENDSTOPS_ADJUSTMENT;
#else
float z_endstop_adj = 0;
#endif
#endif
#if ENABLED(ULTIPANEL)