Skip to content

Commit 360f6e1

Browse files
author
Leonid Fedorenchik
committed
Fix some functions return values
1 parent c102a86 commit 360f6e1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pymycobot/elephantrobot.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ def __init__(self, host, port, debug=False):
2525
def start_client(self):
2626
try:
2727
self.tcp_client.connect(self.ADDR)
28-
return ""
28+
return True
2929
except Exception as e:
30-
return e
30+
print(e)
31+
return False
3132

3233
def stop_client(self):
3334
self.tcp_client.close()
@@ -78,7 +79,7 @@ def string_to_int(self, data):
7879
return -9999
7980

8081
def invalid_coords(self):
81-
coords = [-1, -2, -3, -4, -1, -1]
82+
coords = [-1.0, -2.0, -3.0, -4.0, -1.0, -1.0]
8283
return coords
8384

8485
def get_angles(self):

0 commit comments

Comments
 (0)