Skip to content

Commit d47a7e5

Browse files
committed
fix bug
1 parent 23da600 commit d47a7e5

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# ChangeLog for pymycobot
22

3+
## v3.2.9 (2023-11-9)
4+
5+
- release v3.2.9
6+
- fix bug
7+
38
## v3.2.8 (2023-11-9)
49

510
- release v3.2.8

pymycobot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
from pymycobot.mybuddyemoticon import MyBuddyEmoticon
5353
__all__.append("MyBuddyEmoticon")
5454

55-
__version__ = "3.2.8"
55+
__version__ = "3.2.9"
5656
__author__ = "Elephantrobotics"
5757
__email__ = "[email protected]"
5858
__git_url__ = "https://github.com/elephantrobotics/pymycobot"

pymycobot/common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@ def crc_check(cls, command):
275275
crc ^= 0xA001
276276
else:
277277
crc >>= 1
278+
if crc > 0x7FFF:
279+
return struct.pack(">H", crc)
278280
return cls._encode_int16(_, crc)
279281
# def encode_int16(self, data):
280282
# encoded_data = []

0 commit comments

Comments
 (0)