Skip to content

Commit 557cd83

Browse files
committed
fix get_tof_distance() no return problem
1 parent bc6ead7 commit 557cd83

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
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+
## v2.7.2.1 (2021-12-15)
4+
5+
- release v2.7.3
6+
- fix get_tof_distance() no return problem.
7+
38
## v2.7.2 (2021-12-15)
49

510
- release v2.7.2

pymycobot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"MyCobotSocket"
2121
]
2222

23-
__version__ = "2.7.2"
23+
__version__ = "2.7.3"
2424
__author__ = "Elephantrobotics"
2525
__email__ = "weiquan.xu@elephantrobotics.com"
2626
__git_url__ = "https://github.com/elephantrobotics/pymycobot"

pymycobot/generate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,4 +561,4 @@ def get_tof_distance(self):
561561
Args:
562562
return: The unit is mm
563563
"""
564-
return self._mesg(ProtocolCode.GET_TOF_DISTANCE)
564+
return self._mesg(ProtocolCode.GET_TOF_DISTANCE, has_reply=True)

0 commit comments

Comments
 (0)