Skip to content

Commit

Permalink
fix bug release v3.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
anla-xu committed Sep 12, 2024
1 parent c6cdeb8 commit 70e975a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion pymycobot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
from pymycobot.mybuddyemoticon import MyBuddyEmoticon
__all__.append("MyBuddyEmoticon")

__version__ = "3.5.0"
__version__ = "3.5.1"
__author__ = "Elephantrobotics"
__email__ = "[email protected]"
__git_url__ = "https://github.com/elephantrobotics/pymycobot"
Expand Down
3 changes: 0 additions & 3 deletions pymycobot/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 70e975a

Please sign in to comment.