linuxsand / py_openshowvar

A Python port of KukaVarProxy client (OpenShowVar)
MIT License
34 stars 9 forks source link

16 bit message id counter overflows and leads to struct.pack exception #2

Closed jwasys closed 4 years ago

jwasys commented 4 years ago

Please change line 111 from:

self.msg_id +=1"

to:

self.msg_id = (self.msg_id + 1) % 65536

Thank you

Arian

linuxsand commented 4 years ago

Fixed, thank you :-)