aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--klippy/mcu.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/klippy/mcu.py b/klippy/mcu.py
index e54c237c..93474b1a 100644
--- a/klippy/mcu.py
+++ b/klippy/mcu.py
@@ -147,6 +147,8 @@ class MCU_endstop:
def get_mcu(self):
return self._mcu
def add_stepper(self, stepper):
+ if stepper.get_mcu() is not self._mcu:
+ raise pins.error("Endstop and stepper must be on the same mcu")
self._steppers.append(stepper)
def build_config(self):
self._oid = self._mcu.create_oid()