Update itho-wpu.py

Resolving issue with datatype 0xc (1 byte integer)
This commit is contained in:
WouterJN 2020-12-27 22:57:22 +01:00 committed by GitHub
parent e05f25077e
commit 53c60de2c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ def process_datalog(response):
message = response[5:]
measurements = {}
for d in datalog:
if d.type == 0x0 or d.type == 0x12:
if d.type == 0x0 or d.type == 0x12 or d.type == 0xc:
m = message[d.index:d.index+1]
num = int(m[0], 0)
elif d.type == 0x10: