diff options
| author | Christian Kolset <ckolset@colostate.edu> | 2026-07-29 13:42:11 -0600 |
|---|---|---|
| committer | Christian Kolset <ckolset@colostate.edu> | 2026-07-29 13:42:11 -0600 |
| commit | 1d66acf29dd88acce5f3f7c5fee0c305147173a2 (patch) | |
| tree | 3fc88402fbabe9b4266d8318d158f8b76c2c43c7 /api_layers/protocols/mark10.py | |
| parent | 934d3fc18bc4fc0e05d26a12d635915b00bd8c8d (diff) | |
| parent | bf9c7746ba60613b66ce8d1e9a68c5480f2b93d1 (diff) | |
Merge branch 'feat/mark10-unit-autodetect'
Diffstat (limited to 'api_layers/protocols/mark10.py')
| -rw-r--r-- | api_layers/protocols/mark10.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/api_layers/protocols/mark10.py b/api_layers/protocols/mark10.py index a209232..48ed927 100644 --- a/api_layers/protocols/mark10.py +++ b/api_layers/protocols/mark10.py @@ -44,6 +44,11 @@ class Mark10Layer(BaseProtocol): super().__init__(port, baud, poll_interval, simulate) self._unit = "N" + @property + def current_unit(self) -> str: + """Last unit suffix seen in a gauge reply (e.g. "N", "kgF").""" + return self._unit + # ── Protocol ────────────────────────────────────────────────────────── def _poll(self) -> Dict[str, float]: |
