diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-12-13 10:29:32 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-12-13 10:42:25 -0500 |
commit | 09234502865f9489a72852ba7111da80eb285674 (patch) | |
tree | 2caa18e7576be50768eb6aad4f51d2bfedd30c17 /klippy/extras/tmc.py | |
parent | 14fd40e3f996edee8892446f26f1fc83b6122cce (diff) | |
download | kutter-09234502865f9489a72852ba7111da80eb285674.tar.gz kutter-09234502865f9489a72852ba7111da80eb285674.tar.xz kutter-09234502865f9489a72852ba7111da80eb285674.zip |
tmc: Use configfile note_valid=False when inspecting stepper step_distance
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/tmc.py')
-rw-r--r-- | klippy/extras/tmc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/tmc.py b/klippy/extras/tmc.py index acc0b607..7b9280dd 100644 --- a/klippy/extras/tmc.py +++ b/klippy/extras/tmc.py @@ -287,7 +287,7 @@ def TMCStealthchopHelper(config, mcu_tmc, tmc_freq): if velocity: stepper_name = " ".join(config.get_name().split()[1:]) stepper_config = config.getsection(stepper_name) - step_dist = stepper_config.getfloat('step_distance') + step_dist = stepper_config.getfloat('step_distance', note_valid=False) step_dist_256 = step_dist / (1 << fields.get_field("MRES")) threshold = int(tmc_freq * step_dist_256 / velocity + .5) fields.set_field("TPWMTHRS", max(0, min(0xfffff, threshold))) |