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:
committed by
Bob-the-Kuhn
parent
3b6333c613
commit
62cbaa302e
@ -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)
|
||||
|
Reference in New Issue
Block a user