Fix SENSORLESS_HOMING for Core Kinematics (#9871)

This commit is contained in:
Scott Lahteine 2018-03-01 01:49:41 -06:00 committed by GitHub
parent 803c3169ad
commit f7b44ac2a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 70 additions and 50 deletions

View file

@ -1525,6 +1525,15 @@ static_assert(1 >= 0
#error "SENSORLESS_HOMING on DELTA currently requires STEALTHCHOP."
#endif
// Sensorless homing is required for both combined steppers in an H-bot
#if CORE_IS_XY && X_SENSORLESS != Y_SENSORLESS
#error "CoreXY requires both X and Y to use sensorless homing if either does."
#elif CORE_IS_XZ && X_SENSORLESS != Z_SENSORLESS
#error "CoreXZ requires both X and Z to use sensorless homing if either does."
#elif CORE_IS_YZ && Y_SENSORLESS != Z_SENSORLESS
#error "CoreYZ requires both Y and Z to use sensorless homing if either does."
#endif
#elif ENABLED(SENSORLESS_HOMING)
#error "SENSORLESS_HOMING requires TMC2130 stepper drivers."