sermatec-opensource/sermatec-inverter

Fix error when received data is too small

Closed this issue · 0 comments

  File "/home/golas/Repos/sermatec-inverter/src/sermatec_inverter/protocol_parser.py", line 239, in parseReply
    newField["value"] = int(binString[fieldBitPosition])
                            ~~~~~~~~~^^^^^^^^^^^^^^^^^^
IndexError: string index out of range