From fc1d690d75f1b0e5be8a5a3e791007c314156065 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 7 Nov 2017 11:51:27 -0500 Subject: [PATCH] stepper: Remove unused variables from PrinterStepper class Signed-off-by: Kevin O'Connor --- klippy/stepper.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/klippy/stepper.py b/klippy/stepper.py index f5002d96..473a2435 100644 --- a/klippy/stepper.py +++ b/klippy/stepper.py @@ -14,8 +14,6 @@ class PrinterStepper: self.name = self.name[8:] self.step_dist = config.getfloat('step_distance', above=0.) - self.inv_step_dist = 1. / self.step_dist - self.min_stop_interval = 0. self.mcu_stepper = pins.setup_pin( printer, 'stepper', config.get('step_pin')) dir_pin_params = pins.get_printer_pins(printer).parse_pin_desc( @@ -105,10 +103,10 @@ class PrinterHomingStepper(PrinterStepper): self.homing_endstop_accuracy = self.homing_stepper_phases//2 - 1 elif self.homing_endstop_phase is not None: self.homing_endstop_accuracy = int(math.ceil( - endstop_accuracy * self.inv_step_dist / 2.)) + endstop_accuracy * .5 / self.step_dist)) else: self.homing_endstop_accuracy = int(math.ceil( - endstop_accuracy * self.inv_step_dist)) + endstop_accuracy / self.step_dist)) if self.homing_endstop_accuracy >= self.homing_stepper_phases // 2: logging.info("Endstop for %s is not accurate enough for stepper" " phase adjustment", name)