aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/endstop_phase.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-01-08 12:37:57 -0500
committerKevin O'Connor <kevin@koconnor.net>2021-01-08 14:01:34 -0500
commit8260a3a0c38e25168e3dfc414ed62fd23e380b21 (patch)
tree834afc438c7f3e441b85f14aadb724aaaf2499be /klippy/extras/endstop_phase.py
parentea85d419dea23cac464763c9b36e1b59c9074588 (diff)
downloadkutter-8260a3a0c38e25168e3dfc414ed62fd23e380b21.tar.gz
kutter-8260a3a0c38e25168e3dfc414ed62fd23e380b21.tar.xz
kutter-8260a3a0c38e25168e3dfc414ed62fd23e380b21.zip
homing: Make homing.py an "extras" module
Move klippy/homing.py to klippy/extras/homing.py and convert the code to an "extras" modules. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/endstop_phase.py')
-rw-r--r--klippy/extras/endstop_phase.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/klippy/extras/endstop_phase.py b/klippy/extras/endstop_phase.py
index 66e9fc38..8e70be74 100644
--- a/klippy/extras/endstop_phase.py
+++ b/klippy/extras/endstop_phase.py
@@ -1,6 +1,6 @@
# Endstop accuracy improvement via stepper phase tracking
#
-# Copyright (C) 2016-2018 Kevin O'Connor <kevin@koconnor.net>
+# Copyright (C) 2016-2021 Kevin O'Connor <kevin@koconnor.net>
#
# This file may be distributed under the terms of the GNU GPLv3 license.
import math, logging
@@ -101,7 +101,7 @@ class EndstopPhase:
"Endstop %s incorrect phase (got %d vs %d)" % (
self.name, phase, self.endstop_phase))
return delta * self.step_dist
- def handle_home_rails_end(self, rails):
+ def handle_home_rails_end(self, homing_state, rails):
for rail in rails:
stepper = rail.get_steppers()[0]
if stepper.get_name() != self.name:
@@ -149,7 +149,7 @@ class EndstopPhases:
return
phase = convert_phase(driver_phase, driver_phases, len(phase_history))
phase_history[phase] += 1
- def handle_home_rails_end(self, rails):
+ def handle_home_rails_end(self, homing_state, rails):
for rail in rails:
stepper = rail.get_steppers()[0]
stepper_name = stepper.get_name()