diff --git a/basil/HL/sensirion_ekh4.py b/basil/HL/sensirion_ekh4.py index 479a015b3..f96d57489 100644 --- a/basil/HL/sensirion_ekh4.py +++ b/basil/HL/sensirion_ekh4.py @@ -73,7 +73,7 @@ def _get_values(self, cmd): the extra byte is removed and the other channels are interpreted as usual. 2. Varying amount of extra bytes with no recognizable error code. In this case, nothing can be reconstructed and all channels are set to None. - + Case 1 is reproducable for temperatures between about 43.53C and 46.1C...? ''' ret = self._query(cmd)[4:-2] @@ -92,7 +92,7 @@ def _get_values(self, cmd): values.append(None) else: values.append(self._calc_value(d)) - + return values def get_temperature(self, channel=None): diff --git a/basil/HL/weiss_labevent.py b/basil/HL/weiss_labevent.py index f4b18180c..7e7049586 100644 --- a/basil/HL/weiss_labevent.py +++ b/basil/HL/weiss_labevent.py @@ -11,6 +11,7 @@ logger = logging.getLogger(__name__) + class weissLabEvent(HardwareLayer): ''' Driver for Weiss LabEvent T/210/70/5 climate chamber. Commands extracted from @@ -73,7 +74,7 @@ def _get_feature_status(self, id): raise ValueError('Invalid feature id!') feature_name = self.query(b'14010\xb61\xb6' + str(id).encode('ascii'))[1] - feature_status = self.query(b'14003\xb61\xb6' + str(id + 1).encode('ascii'))[1] # For get and set status, id = id + 1 + feature_status = self.query(b'14003\xb61\xb6' + str(id + 1).encode('ascii'))[1] # For get and set status, id = id + 1 logger.debug('Feature {0} has status {1}'.format(feature_name, feature_status)) return bool(int(feature_status))