Fix axis CS sanity check (#16271)
This commit is contained in:
parent
856013cc0f
commit
0d8c81b2a6
1 changed files with 1 additions and 1 deletions
|
@ -1959,7 +1959,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
||||||
/**
|
/**
|
||||||
* Check existing CS pins against enabled TMC SPI drivers.
|
* Check existing CS pins against enabled TMC SPI drivers.
|
||||||
*/
|
*/
|
||||||
#define INVALID_TMC_SPI(ST) (AXIS_HAS_SPI && !PIN_EXISTS(ST##_CS))
|
#define INVALID_TMC_SPI(ST) (AXIS_HAS_SPI(ST) && !PIN_EXISTS(ST##_CS))
|
||||||
#if INVALID_TMC_SPI(X)
|
#if INVALID_TMC_SPI(X)
|
||||||
#error "An SPI driven TMC driver on X requires X_CS_PIN."
|
#error "An SPI driven TMC driver on X requires X_CS_PIN."
|
||||||
#elif INVALID_TMC_SPI(X2)
|
#elif INVALID_TMC_SPI(X2)
|
||||||
|
|
Reference in a new issue