|
@@ -3806,23 +3806,23 @@ inline void gcode_M206() {
|
3806
|
3806
|
* M666: Set delta endstop adjustment
|
3807
|
3807
|
*/
|
3808
|
3808
|
inline void gcode_M666() {
|
3809
|
|
- for (int8_t i = 0; i < 3; i++) {
|
|
3809
|
+ for (int8_t i = X_AXIS; i <= Z_AXIS; i++) {
|
3810
|
3810
|
if (code_seen(axis_codes[i])) {
|
3811
|
3811
|
endstop_adj[i] = code_value();
|
3812
|
3812
|
}
|
3813
|
3813
|
}
|
3814
|
3814
|
}
|
3815
|
|
-#elif defined(Z_DUAL_ENDSTOPS)
|
|
3815
|
+#elif defined(Z_DUAL_ENDSTOPS) // !DELTA && defined(Z_DUAL_ENDSTOPS)
|
3816
|
3816
|
/**
|
3817
|
3817
|
* M666: For Z Dual Endstop setup, set z axis offset to the z2 axis.
|
3818
|
3818
|
*/
|
3819
|
3819
|
inline void gcode_M666() {
|
3820
|
|
- if (code_seen('Z')) z_endstop_adj = code_value();
|
3821
|
|
- SERIAL_ECHOPAIR("Z Endstop Adjustment set to (mm):", z_endstop_adj );
|
3822
|
|
- SERIAL_EOL;
|
|
3820
|
+ if (code_seen('Z')) z_endstop_adj = code_value();
|
|
3821
|
+ SERIAL_ECHOPAIR("Z Endstop Adjustment set to (mm):", z_endstop_adj);
|
|
3822
|
+ SERIAL_EOL;
|
3823
|
3823
|
}
|
3824
|
3824
|
|
3825
|
|
-#endif // DELTA
|
|
3825
|
+#endif // !DELTA && defined(Z_DUAL_ENDSTOPS)
|
3826
|
3826
|
|
3827
|
3827
|
#ifdef FWRETRACT
|
3828
|
3828
|
|