Skip to content

Commit 23da600

Browse files
committed
fix bug
1 parent 62c2ad9 commit 23da600

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
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.8 (2023-11-9)
4+
5+
- release v3.2.8
6+
- fix bug
7+
38
## v3.2.7 (2023-11-7)
49

510
- release v3.2.7

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.7"
55+
__version__ = "3.2.8"
5656
__author__ = "Elephantrobotics"
5757
__email__ = "[email protected]"
5858
__git_url__ = "https://github.com/elephantrobotics/pymycobot"

pymycobot/myagv.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ def _read(self, command):
6262

6363
elif len(datas) >= 2:
6464
data_len = struct.unpack("b", data)[0]
65-
# print("``````:",datas, command, k, data_len)
66-
if data_len == command[k-1] or command[-1] == 29:
65+
if command[-1] == 29 or data_len == command[k-1]:
6766
datas += data
6867
else:
6968
datas = b''

0 commit comments

Comments
 (0)