remove namespace collision
This commit is contained in:
parent
a0dca7bec1
commit
7a4d28b6d1
4
robot.py
4
robot.py
|
@ -35,9 +35,9 @@ class Robot:
|
|||
def move(self, coords=None):
|
||||
if coords is not None:
|
||||
self.target = coords
|
||||
hex = [hex(dec).lstrip("0x").rstrip("L") for dec in self.target]
|
||||
str = '{'+','.join(hex)+'}'
|
||||
str = str.lower()
|
||||
hexval = [hex(dec).lstrip("0x").rstrip("L") for dec in self.target]
|
||||
str = '{'+','.join(hexval)+'}'
|
||||
try:
|
||||
self.serial_port.write(str)
|
||||
except serial.serialutil.SerialTimeoutException:
|
||||
|
|
Loading…
Reference in New Issue