Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Pelnar <robert.pelnar@seznam.cz>2017-09-21 02:52:28 +0300
committerRobert Pelnar <robert.pelnar@seznam.cz>2017-09-21 02:52:28 +0300
commit4cae00741ec2e8ee687916821289b9bf70f9c3af (patch)
tree2d0ace8ed4d18a54a8e009720e33cff90d547976 /Firmware/tmc2130.cpp
parente34d8160041128c4ae2c769d9820e5d8c9ab77c1 (diff)
MAKER FAIRE
filament sensor: runout detection tuning, save/restore print silent mode: safe mode selection durring printing and after homing
Diffstat (limited to 'Firmware/tmc2130.cpp')
-rw-r--r--Firmware/tmc2130.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Firmware/tmc2130.cpp b/Firmware/tmc2130.cpp
index d8f98ff4a..9e130e647 100644
--- a/Firmware/tmc2130.cpp
+++ b/Firmware/tmc2130.cpp
@@ -277,13 +277,19 @@ void tmc2130_home_exit()
if (sg_homing_axes_mask & mask & (X_AXIS_MASK | Y_AXIS_MASK))
{
if (tmc2130_mode == TMC2130_MODE_SILENT)
+ {
tmc2130_wr(tmc2130_cs[axis], TMC2130_REG_GCONF, TMC2130_GCONF_SILENT); // Configuration back to stealthChop
+ tmc2130_wr(tmc2130_cs[axis], TMC2130_REG_TCOOLTHRS, 0);
+// tmc2130_wr_PWMCONF(tmc2130_cs[i], tmc2130_pwm_ampl[i], tmc2130_pwm_grad[i], tmc2130_pwm_freq[i], tmc2130_pwm_auto[i], 0, 0);
+ }
else
+ {
#ifdef TMC2130_SG_HOMING_SW_XY
tmc2130_wr(tmc2130_cs[axis], TMC2130_REG_GCONF, TMC2130_GCONF_NORMAL);
#else //TMC2130_SG_HOMING_SW_XY
tmc2130_wr(tmc2130_cs[axis], TMC2130_REG_GCONF, TMC2130_GCONF_SGSENS);
#endif //TMC2130_SG_HOMING_SW_XY
+ }
}
tmc2130_axis_stalled[axis] = false;
}