Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion temper.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def _read_hidraw(self, device):
#Bytes 11-12 hold the external temp, divide by 100
self._parse_bytes('external temperature', 10, 100.0, bytes, info, self.verbose)
return info
if info['firmware'][:14] == 'TEMPerHUM_V3.9':
if info['firmware'][:14] in ['TEMPerHUM_V3.9', 'TEMPerHUM_V4.1']:
info['firmware'] = info['firmware'][:14]
#Bytes 3-4 hold the device temp, divide by 100
self._parse_bytes('internal temperature', 2, 100.0, bytes, info, self.verbose)
Expand Down