Fix error when received data is too small
Closed this issue · 0 comments
andreondra commented
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