mzahana / siyi_sdk

Python implementation of the SDK of the ZR10 camera-gimbal system
MIT License
40 stars 26 forks source link

SIYI message self._seq variable does not reset to 0. #5

Closed SmolBoi96 closed 11 months ago

SmolBoi96 commented 11 months ago

SIYI message self._seq variable starts at 0 and increments everytime a request function is used in the SDK. When it hits 65536 it gives this warning:

[SIYISDK::incrementSEQ] : Sequence value is greater than 65535. Resetting to zero

But the variable does not reset to 0 and this warning keeps showing and the request does not complete.

I propose to add this line after line 147 in siyi-message.py: self._seq = 0

mzahana commented 11 months ago

Done. Thanks @SmolBoi96