Skip to content

Commit 264ccea

Browse files
author
Leonid Fedorenchik
committed
fix(ElephantRobot): Fix get_joint_loss_pkg() API
1 parent 508708a commit 264ccea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymycobot/elephantrobot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ def get_joint_loss_pkg(self, joint_number: Joint) -> int:
615615
Returns:
616616
int: The loss package count for the specified joint.
617617
"""
618-
command = "get_joint_loss_pkg(" + str(joint_number) + ")\n"
618+
command = "get_joint_loss_pkg(" + str(joint_number.value) + ")\n"
619619
res = self.send_command(command)
620620
return int(self.string_to_double(res))
621621

0 commit comments

Comments
 (0)