From 39d34805bf58311cd8c1751f75c818affa43e173 Mon Sep 17 00:00:00 2001 From: Risto Date: Sat, 17 Jun 2023 09:50:09 +0200 Subject: [PATCH] fix: management_info_fmt signess parsing --- pylontech/pylontech.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pylontech/pylontech.py b/pylontech/pylontech.py index 0db9c81..465281c 100644 --- a/pylontech/pylontech.py +++ b/pylontech/pylontech.py @@ -66,8 +66,8 @@ class Pylontech: ) management_info_fmt = construct.Struct( - "ChargeVoltageLimit" / DivideBy1000(construct.Int16sb), - "DischargeVoltageLimit" / DivideBy1000(construct.Int16sb), + "ChargeVoltageLimit" / DivideBy1000(construct.Int16ub), + "DischargeVoltageLimit" / DivideBy1000(construct.Int16ub), "ChargeCurrentLimit" / ToAmp(construct.Int16sb), "DischargeCurrentLimit" / ToAmp(construct.Int16sb), "status"