Skip to content

Commit 6574810

Browse files
authored
Merge pull request #34 from rotorman/fix_pr20_bug
fix: management_info_fmt signess parsing
2 parents 6255788 + 39d3480 commit 6574810

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pylontech/pylontech.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ class Pylontech:
6666
)
6767

6868
management_info_fmt = construct.Struct(
69-
"ChargeVoltageLimit" / DivideBy1000(construct.Int16sb),
70-
"DischargeVoltageLimit" / DivideBy1000(construct.Int16sb),
69+
"ChargeVoltageLimit" / DivideBy1000(construct.Int16ub),
70+
"DischargeVoltageLimit" / DivideBy1000(construct.Int16ub),
7171
"ChargeCurrentLimit" / ToAmp(construct.Int16sb),
7272
"DischargeCurrentLimit" / ToAmp(construct.Int16sb),
7373
"status"

0 commit comments

Comments
 (0)