[2.0.x] TMC2660 followup (#12029)

* Don't react to s2g on TMC2660. False positives
* Init with sensorless probing as well
This commit is contained in:
teemuatlut authored and Scott Lahteine committed 2018-10-07 15:37:44 -05:00
1 parent d6b0fbd771
commit dffb4c63dc
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -107,7 +107,7 @@
constexpr uint8_t OTPW_bp = 2;
constexpr uint32_t OT_bm = 0x2UL;
constexpr uint8_t OT_bp = 1;
constexpr uint8_t DRIVER_ERROR_bm = 0x1EUL;
constexpr uint8_t DRIVER_ERROR_bm = 0x6;
TMC_driver_data data;
data.drv_status = st.DRVSTATUS();
data.is_otpw = (data.drv_status & OTPW_bm) >> OTPW_bp;