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/mark10.py | |
| parent | 91b0b613f0b58498315ef91f6a541dd1089b88de (diff) | |
Add simulation handling to protocol layers and update motion_capture setting
Diffstat (limited to 'api_layers/protocols/mark10.py')
| -rw-r--r-- | api_layers/protocols/mark10.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/api_layers/protocols/mark10.py b/api_layers/protocols/mark10.py index 1b5bf1c..4a97892 100644 --- a/api_layers/protocols/mark10.py +++ b/api_layers/protocols/mark10.py @@ -76,7 +76,11 @@ class Mark10Layer(BaseProtocol): "cycle_units": b"U\r", } cmd = cmd_map.get(channel_id) - if cmd is None or not self._ser: + if cmd is None: + return False + if self.simulate: + return True + if not self._ser: return False try: self._ser.write(cmd) |
