mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-18 04:08:04 -06:00
probe: Move add_steppers() logic to HomingViaProbeHelper class
Perform the initial add_steppers() configuration in a single location. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
58753e58a2
commit
f72f94e299
3 changed files with 7 additions and 21 deletions
|
@ -196,13 +196,6 @@ class EddyEndstopWrapper:
|
|||
self._samples = []
|
||||
self._is_sampling = self._start_from_home = self._need_stop = False
|
||||
self._trigger_time = 0.
|
||||
self._printer.register_event_handler('klippy:mcu_identify',
|
||||
self._handle_mcu_identify)
|
||||
def _handle_mcu_identify(self):
|
||||
kin = self._printer.lookup_object('toolhead').get_kinematics()
|
||||
for stepper in kin.get_steppers():
|
||||
if stepper.is_active_axis('z'):
|
||||
self.add_stepper(stepper)
|
||||
# Measurement gathering
|
||||
def _start_measurements(self, is_home=False):
|
||||
self._need_stop = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue