From 317f8c94c8bf83af4551fe57f1f8d7395a14773d Mon Sep 17 00:00:00 2001 From: Timofey Titovets Date: Wed, 15 May 2024 02:37:58 +0200 Subject: tmc.py: add track of stallguard Signed-off-by: Timofey Titovets --- klippy/extras/tmc_uart.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'klippy/extras/tmc_uart.py') diff --git a/klippy/extras/tmc_uart.py b/klippy/extras/tmc_uart.py index 93935042..fa0d6262 100644 --- a/klippy/extras/tmc_uart.py +++ b/klippy/extras/tmc_uart.py @@ -187,6 +187,8 @@ class MCU_TMC_uart_bitbang: self.analog_mux.activate(instance_id) msg = self._encode_write(0xf5, addr, reg | 0x80, val) self.tmcuart_send_cmd.send([self.oid, msg, 0], minclock=minclock) + def get_mcu(self): + return self.mcu # Lookup a (possibly shared) tmc uart def lookup_tmc_uart_bitbang(config, max_addr): @@ -261,3 +263,5 @@ class MCU_TMC_uart: "Unable to write tmc uart '%s' register %s" % (self.name, reg_name)) def get_tmc_frequency(self): return self.tmc_frequency + def get_mcu(self): + return self.mcu_uart.get_mcu() -- cgit v1.2.3-70-g09d2