diff options
| author | Christian Kolset <ckolset@colostate.edu> | 2026-07-27 16:47:47 -0600 |
|---|---|---|
| committer | Christian Kolset <ckolset@colostate.edu> | 2026-07-27 16:47:47 -0600 |
| commit | 49294cdeb57b537308145e6ec552d05e61e69dfa (patch) | |
| tree | bfe30e5894ffb4ce4104b62000e3e0b7ecc471c7 /api_layers/protocols/cml.py | |
| parent | 91b0b613f0b58498315ef91f6a541dd1089b88de (diff) | |
Add simulation handling to protocol layers and update motion_capture setting
Diffstat (limited to 'api_layers/protocols/cml.py')
| -rw-r--r-- | api_layers/protocols/cml.py | 2 |
1 files changed, 2 insertions, 0 deletions
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: |
