From 53de6fb578aee9fb7e73c2074e12fdbab51c5924 Mon Sep 17 00:00:00 2001 From: Desuuuu Date: Sun, 22 May 2022 18:22:51 +0200 Subject: [PATCH] samd_sercom: Reserve the sercom interface --- klippy/extras/samd_sercom.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/klippy/extras/samd_sercom.py b/klippy/extras/samd_sercom.py index 44a9263c..eb1232b9 100644 --- a/klippy/extras/samd_sercom.py +++ b/klippy/extras/samd_sercom.py @@ -16,6 +16,10 @@ class SamdSERCOM: ppins = self.printer.lookup_object("pins") tx_pin_params = ppins.lookup_pin(self.tx_pin) self.mcu = tx_pin_params['chip'] + + pin_resolver = ppins.get_pin_resolver(self.mcu.get_name()) + pin_resolver.reserve_interface(self.sercom, config.get_name()) + self.mcu.add_config_cmd( "set_sercom_pin bus=%s sercom_pin_type=tx pin=%s" % ( self.sercom, tx_pin_params['pin']))