Tidy up. Remove that handler - circuitpy will stop motors anyway.

This commit is contained in:
Danny Staple
2022-09-11 21:30:37 +01:00
parent 3c47ff9874
commit 3be25e15b0
2 changed files with 4 additions and 17 deletions
+2 -5
View File
@@ -79,8 +79,5 @@ async def command_handler():
await asyncio.sleep(3)
await asyncio.sleep(0)
try:
asyncio.create_task(motor_speed_loop())
asyncio.run(command_handler())
finally:
robot.stop()
asyncio.create_task(motor_speed_loop())
asyncio.run(command_handler())