From 70e975a1d10cf89a18048873bf72322884bb75c9 Mon Sep 17 00:00:00 2001 From: weiquan Date: Thu, 12 Sep 2024 15:51:10 +0800 Subject: [PATCH] fix bug release v3.5.1 --- CHANGELOG.md | 5 +++++ pymycobot/__init__.py | 2 +- pymycobot/common.py | 3 --- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 315f394..70b2bae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # ChangeLog for pymycobot +## v3.5.1 (2024-9-12) + +- release v3.5.1 +- fix bug + ## v3.5.0 (2024-9-9) - release v3.5.0 diff --git a/pymycobot/__init__.py b/pymycobot/__init__.py index 90541c3..ae3e05f 100644 --- a/pymycobot/__init__.py +++ b/pymycobot/__init__.py @@ -63,7 +63,7 @@ from pymycobot.mybuddyemoticon import MyBuddyEmoticon __all__.append("MyBuddyEmoticon") -__version__ = "3.5.0" +__version__ = "3.5.1" __author__ = "Elephantrobotics" __email__ = "weiquan.xu@elephantrobotics.com" __git_url__ = "https://github.com/elephantrobotics/pymycobot" diff --git a/pymycobot/common.py b/pymycobot/common.py index 79a2c55..db96bbb 100644 --- a/pymycobot/common.py +++ b/pymycobot/common.py @@ -755,8 +755,6 @@ def read(self, genre, method=None, command=None, _class=None, timeout=None): elif genre == ProtocolCode.GET_ACCEI_DATA: wait_time = 1 while True and time.time() - t < wait_time: - # return b'\xfe\xfe\x0e\x19\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\xfa' - return b'\xfe\xfe\x08\xe4\x00\x00\x00\x00\x00\x06\xfa' data = self._serial_port.read() # self.log.debug("data: {}".format(data)) k += 1 @@ -811,5 +809,4 @@ def read(self, genre, method=None, command=None, _class=None, timeout=None): for d in datas: command_log += hex(d)[2:] + " " self.log.debug("_read : {}".format(command_log)) - print(datas) return datas \ No newline at end of file