Skip to content

Commit

Permalink
Merge pull request #34 from rotorman/fix_pr20_bug
Browse files Browse the repository at this point in the history
fix: management_info_fmt signess parsing
  • Loading branch information
Frankkkkk committed Jun 17, 2023
2 parents 6255788 + 39d3480 commit 6574810
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pylontech/pylontech.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6574810

Please sign in to comment.