|
@@ -861,10 +861,6 @@ void Endstops::update() {
|
861
|
861
|
|
862
|
862
|
#if ENABLED(SPI_ENDSTOPS)
|
863
|
863
|
|
864
|
|
- #define X_STOP (X_HOME_DIR < 0 ? X_MIN : X_MAX)
|
865
|
|
- #define Y_STOP (Y_HOME_DIR < 0 ? Y_MIN : Y_MAX)
|
866
|
|
- #define Z_STOP (Z_HOME_DIR < 0 ? Z_MIN : Z_MAX)
|
867
|
|
-
|
868
|
864
|
bool Endstops::tmc_spi_homing_check() {
|
869
|
865
|
bool hit = false;
|
870
|
866
|
#if X_SPI_SENSORLESS
|
|
@@ -875,7 +871,7 @@ void Endstops::update() {
|
875
|
871
|
|| stepperZ.test_stall_status()
|
876
|
872
|
#endif
|
877
|
873
|
)) {
|
878
|
|
- SBI(live_state, X_STOP);
|
|
874
|
+ SBI(live_state, X_ENDSTOP);
|
879
|
875
|
hit = true;
|
880
|
876
|
}
|
881
|
877
|
#endif
|
|
@@ -887,7 +883,7 @@ void Endstops::update() {
|
887
|
883
|
|| stepperZ.test_stall_status()
|
888
|
884
|
#endif
|
889
|
885
|
)) {
|
890
|
|
- SBI(live_state, Y_STOP);
|
|
886
|
+ SBI(live_state, Y_ENDSTOP);
|
891
|
887
|
hit = true;
|
892
|
888
|
}
|
893
|
889
|
#endif
|
|
@@ -899,7 +895,7 @@ void Endstops::update() {
|
899
|
895
|
|| stepperY.test_stall_status()
|
900
|
896
|
#endif
|
901
|
897
|
)) {
|
902
|
|
- SBI(live_state, Z_STOP);
|
|
898
|
+ SBI(live_state, Z_ENDSTOP);
|
903
|
899
|
hit = true;
|
904
|
900
|
}
|
905
|
901
|
#endif
|
|
@@ -907,9 +903,9 @@ void Endstops::update() {
|
907
|
903
|
}
|
908
|
904
|
|
909
|
905
|
void Endstops::clear_endstop_state() {
|
910
|
|
- TERN_(X_SPI_SENSORLESS, CBI(live_state, X_STOP));
|
911
|
|
- TERN_(Y_SPI_SENSORLESS, CBI(live_state, Y_STOP));
|
912
|
|
- TERN_(Z_SPI_SENSORLESS, CBI(live_state, Z_STOP));
|
|
906
|
+ TERN_(X_SPI_SENSORLESS, CBI(live_state, X_ENDSTOP));
|
|
907
|
+ TERN_(Y_SPI_SENSORLESS, CBI(live_state, Y_ENDSTOP));
|
|
908
|
+ TERN_(Z_SPI_SENSORLESS, CBI(live_state, Z_ENDSTOP));
|
913
|
909
|
}
|
914
|
910
|
|
915
|
911
|
#endif // SPI_ENDSTOPS
|