From 49294cdeb57b537308145e6ec552d05e61e69dfa Mon Sep 17 00:00:00 2001 From: Christian Kolset Date: Mon, 27 Jul 2026 16:47:47 -0600 Subject: Add simulation handling to protocol layers and update motion_capture setting --- api_layers/protocols/cml.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'api_layers/protocols/cml.py') diff --git a/api_layers/protocols/cml.py b/api_layers/protocols/cml.py index dbee2fa..67be0d5 100644 --- a/api_layers/protocols/cml.py +++ b/api_layers/protocols/cml.py @@ -119,6 +119,8 @@ class CMLLayer(BaseProtocol): motor = next((m for m in self.motors if m.motor_id == motor_id), None) if motor is None: return False + if self.simulate: + return True try: data = "" if cmd in ("ME", "MD") else str(int(value)) if motor.address == 0: -- cgit v1.2.3