From 8419e152bbd23ae02e1728fe2466cdfbb2d1ddfa Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 9 Jun 2017 23:39:46 -0400 Subject: 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 --- klippy/stepper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/stepper.py') 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 -- cgit v1.2.3-70-g09d2