From dffb4c63dca4da7f2c248cdace62c475479ca117 Mon Sep 17 00:00:00 2001 From: teemuatlut Date: Sun, 7 Oct 2018 23:37:44 +0300 Subject: [PATCH] [2.0.x] TMC2660 followup (#12029) * Don't react to s2g on TMC2660. False positives * Init with sensorless probing as well --- Marlin/src/feature/tmc_util.cpp | 2 +- Marlin/src/module/stepper_indirection.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/src/feature/tmc_util.cpp b/Marlin/src/feature/tmc_util.cpp index 9628c0d988..2db0dd2d57 100644 --- a/Marlin/src/feature/tmc_util.cpp +++ b/Marlin/src/feature/tmc_util.cpp @@ -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; diff --git a/Marlin/src/module/stepper_indirection.cpp b/Marlin/src/module/stepper_indirection.cpp index ebf84453df..084a6c7e46 100644 --- a/Marlin/src/module/stepper_indirection.cpp +++ b/Marlin/src/module/stepper_indirection.cpp @@ -645,7 +645,7 @@ void reset_stepper_drivers() { { constexpr uint8_t extruder = 5; _TMC_INIT(E5, planner.axis_steps_per_mm[E_AXIS_N]); UNUSED(extruder); } #endif - #if ENABLED(SENSORLESS_HOMING) + #if USE_SENSORLESS #if X_SENSORLESS #if AXIS_HAS_STALLGUARD(X) stepperX.sgt(X_STALL_SENSITIVITY);