diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-08-29 17:20:26 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-08-29 17:59:27 -0400 |
commit | 68d6788413ea8408d3c0290f4e6aa9974733a324 (patch) | |
tree | 02111f4a58166a6175b71e453b5dbfacf52c9661 /klippy/homing.py | |
parent | c7c551369f38eb3de73516ec9239a1014377a397 (diff) | |
download | kutter-68d6788413ea8408d3c0290f4e6aa9974733a324.tar.gz kutter-68d6788413ea8408d3c0290f4e6aa9974733a324.tar.xz kutter-68d6788413ea8408d3c0290f4e6aa9974733a324.zip |
mcu: Add get_mcu() call to the mcu oid objects
Allow external code to obtain the mcu object that controls a pin setup
with setup_pin(). Also, don't bother defining print_to_mcu_time() and
system_to_mcu_time() on each pin object as they can be obtained via
the new get_mcu() method.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/homing.py')
-rw-r--r-- | klippy/homing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/homing.py b/klippy/homing.py index 7d4cfb5b..7ec103b0 100644 --- a/klippy/homing.py +++ b/klippy/homing.py @@ -38,7 +38,7 @@ class Homing: move_end_print_time = self.toolhead.get_last_move_time() self.toolhead.reset_print_time() for s, es, last_pos in endstops: - es.home_finalize(es.print_to_mcu_time(move_end_print_time)) + es.home_finalize(es.get_mcu().print_to_mcu_time(move_end_print_time)) # Wait for endstops to trigger for s, es, last_pos in endstops: try: |