Skip to content

Commit

Permalink
FIX: Codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Daas committed Nov 3, 2020
1 parent 31a3040 commit fb761ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions basil/HL/sensirion_ekh4.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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):
Expand Down
3 changes: 2 additions & 1 deletion basil/HL/weiss_labevent.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

logger = logging.getLogger(__name__)


class weissLabEvent(HardwareLayer):
'''
Driver for Weiss LabEvent T/210/70/5 climate chamber. Commands extracted from
Expand Down Expand Up @@ -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))

Expand Down

0 comments on commit fb761ce

Please sign in to comment.