Bring SPI_SENSORLESS code up to date (#15560)

This commit is contained in:
Markus Towara
2019-10-15 18:34:45 +02:00
committed by Scott Lahteine
parent b4f82d1081
commit 437978d349
2 changed files with 11 additions and 29 deletions

View File

@ -537,7 +537,7 @@ void Endstops::update() {
/**
* Check and update endstops
*/
#if HAS_X_MIN
#if HAS_X_MIN && !X_SPI_SENSORLESS
#if ENABLED(X_DUAL_ENDSTOPS)
UPDATE_ENDSTOP_BIT(X, MIN);
#if HAS_X2_MIN
@ -550,7 +550,7 @@ void Endstops::update() {
#endif
#endif
#if HAS_X_MAX
#if HAS_X_MAX && !X_SPI_SENSORLESS
#if ENABLED(X_DUAL_ENDSTOPS)
UPDATE_ENDSTOP_BIT(X, MAX);
#if HAS_X2_MAX
@ -563,7 +563,7 @@ void Endstops::update() {
#endif
#endif
#if HAS_Y_MIN
#if HAS_Y_MIN && !Y_SPI_SENSORLESS
#if ENABLED(Y_DUAL_ENDSTOPS)
UPDATE_ENDSTOP_BIT(Y, MIN);
#if HAS_Y2_MIN
@ -576,7 +576,7 @@ void Endstops::update() {
#endif
#endif
#if HAS_Y_MAX
#if HAS_Y_MAX && !Y_SPI_SENSORLESS
#if ENABLED(Y_DUAL_ENDSTOPS)
UPDATE_ENDSTOP_BIT(Y, MAX);
#if HAS_Y2_MAX
@ -589,7 +589,7 @@ void Endstops::update() {
#endif
#endif
#if HAS_Z_MIN
#if HAS_Z_MIN && !Z_SPI_SENSORLESS
#if Z_MULTI_ENDSTOPS
UPDATE_ENDSTOP_BIT(Z, MIN);
#if HAS_Z2_MIN
@ -616,7 +616,7 @@ void Endstops::update() {
UPDATE_ENDSTOP_BIT(Z, MIN_PROBE);
#endif
#if HAS_Z_MAX
#if HAS_Z_MAX && !Z_SPI_SENSORLESS
// Check both Z dual endstops
#if Z_MULTI_ENDSTOPS
UPDATE_ENDSTOP_BIT(Z, MAX);