Skip to content

Commit b9ea148

Browse files
committed
fix bug get_angle()
1 parent 5d8c116 commit b9ea148

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pymycobot/mybuddy.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ def _mesg(self, genre, *args, **kwargs):
159159
return self._process_single(res)
160160
elif genre in [ProtocolCode.GET_ANGLES]:
161161
return [self._int2angle(angle) for angle in res]
162+
elif genre in [ProtocolCode.GET_ANGLE]:
163+
return self._process_single(self._int2angle(angle) for angle in res)
162164
elif genre in [ProtocolCode.GET_COORDS, ProtocolCode.GET_TOOL_REFERENCE, ProtocolCode.GET_WORLD_REFERENCE, ProtocolCode.GET_BASE_COORDS, ProtocolCode.BASE_TO_SINGLE_COORDS]:
163165
if res:
164166
r = []

0 commit comments

Comments
 (0)