From 53c60de2c0abfa5ac134daa147624e5bb042987f Mon Sep 17 00:00:00 2001 From: WouterJN Date: Sun, 27 Dec 2020 22:57:22 +0100 Subject: [PATCH] Update itho-wpu.py Resolving issue with datatype 0xc (1 byte integer) --- itho-wpu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itho-wpu.py b/itho-wpu.py index 7a56b57..78dedcc 100755 --- a/itho-wpu.py +++ b/itho-wpu.py @@ -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: