From f796d327045245fbf9fe6e3aa65b84d5eb4a3501 Mon Sep 17 00:00:00 2001 From: Anthony Romaniello Date: Tue, 26 Dec 2023 16:39:00 -0500 Subject: [PATCH] Add firmware and API version properties to mock sigan --- scos_actions/hardware/mocks/mock_sigan.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scos_actions/hardware/mocks/mock_sigan.py b/scos_actions/hardware/mocks/mock_sigan.py index 46b8f2ec..29942705 100644 --- a/scos_actions/hardware/mocks/mock_sigan.py +++ b/scos_actions/hardware/mocks/mock_sigan.py @@ -38,6 +38,8 @@ def __init__(self, randomize_values=False): self._capture_time = None self._is_available = True self._plugin_version = SCOS_ACTIONS_VERSION + self._firmware_version = "1.2.3" + self._api_version = "v1.2.3" # Simulate returning less than the requested number of samples from # self.recv_num_samps @@ -55,6 +57,14 @@ def is_available(self): @property def plugin_version(self): return self._plugin_version + + @property + def firmware_version(self): + return self._firmware_version + + @property + def api_version(self): + return self._api_version @property def sample_rate(self):