Skip to content

Commit dfc902a

Browse files
committed
Change time.sleep() to Runner.wait() in motor_move()
1 parent 7488a20 commit dfc902a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

neopia/neosoco.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
# Boston, MA 02111-1307 USA
1818

1919

20-
import time
21-
2220
from neopia.runner import Runner
2321
from neopia.util import Util
2422
from neopia.model import Robot
@@ -466,7 +464,7 @@ def motor_move(self, direction: str):
466464
raise ValueError
467465
else:
468466
raise TypeError
469-
time.sleep(0.1) # Since brocast from cotroller is per 100ms
467+
Runner.wait(100) # Since broadcast from controller is per 100ms
470468

471469
def wheels(self, left_velocity, right_velocity=None):
472470
self.write(Neosoco.LINE_TRACER_MODE, Neosoco.LINE_TRACER_MODE_OFF)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name="neopia",
5-
version="0.1.1",
5+
version="0.1.2",
66
author="RoboticsWare",
77
author_email="[email protected]",
88
description="Python library for Neopia neobot",

0 commit comments

Comments
 (0)