aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/stepper.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-06-09 23:39:46 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-06-10 00:12:14 -0400
commit8419e152bbd23ae02e1728fe2466cdfbb2d1ddfa (patch)
tree341e0345637e96c59e3893d564fa43d6138dae4c /klippy/stepper.py
parent1bc3e0a678bd1b27264226c523841b60d7236a45 (diff)
downloadkutter-8419e152bbd23ae02e1728fe2466cdfbb2d1ddfa.tar.gz
kutter-8419e152bbd23ae02e1728fe2466cdfbb2d1ddfa.tar.xz
kutter-8419e152bbd23ae02e1728fe2466cdfbb2d1ddfa.zip
klippy: Remove some obscure python2 dependencies
Don't modify dictionaries while iterating them and be careful to use // when doing an integer divide. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/stepper.py')
-rw-r--r--klippy/stepper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/stepper.py b/klippy/stepper.py
index a2fda545..eac1d263 100644
--- a/klippy/stepper.py
+++ b/klippy/stepper.py
@@ -36,7 +36,7 @@ class PrinterStepper:
else:
self.homing_endstop_accuracy = int(math.ceil(
endstop_accuracy * self.inv_step_dist))
- if self.homing_endstop_accuracy >= self.homing_stepper_phases/2:
+ if self.homing_endstop_accuracy >= self.homing_stepper_phases // 2:
logging.info("Endstop for %s is not accurate enough for stepper"
" phase adjustment" % (name,))
self.homing_stepper_phases = None