Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for TEMPerGold_V3.1 #4

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Support for TEMPerGold_V3.1

  • Loading branch information
Atomicbeast101 committed Nov 10, 2018
commit c6535f3357c1e29481c6d4ec09d2ead2e66d2867
@@ -184,8 +184,8 @@ def _read_hidraw(self, device):
self._parse_bytes('internal temperature', 2, 256.0, bytes, info)
return info

if info['firmware'][:12] in [ 'TEMPerX_V3.1', 'TEMPerX_V3.3' ]:
info['firmware'] = info['firmware'][:12]
if info['firmware'][:15] in [ 'TEMPerX_V3.1', 'TEMPerX_V3.3', 'TEMPerGold_V3.1' ]:
info['firmware'] = info['firmware'][:15]
self._parse_bytes('internal temperature', 2, 100.0, bytes, info)
self._parse_bytes('internal humidity', 4, 100.0, bytes, info)
self._parse_bytes('external temperature', 10, 100.0, bytes, info)
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.