1
0
mirror of https://github.com/pommi/python-itho-wpu.git synced 2024-11-21 13:52:15 +01:00

Merge pull request #3 from WouterJN/patch-1

Update itho-wpu.py
This commit is contained in:
Pim van den Berg 2020-12-29 21:27:59 +01:00 committed by GitHub
commit ecc8bd123b

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: