janvrany / bricknil

Control LEGO Bluetooth Sensors and Motors with Python
https://virantha.github.io/bricknil
Apache License 2.0
6 stars 4 forks source link

Regression in ramp_speed #13

Open 0xabu opened 2 years ago

0xabu commented 2 years ago
create_task() got an unexpected keyword argument 'daemon'
  File "[C:\src\bricknil\bricknil\sensor\motor.py]()", line 97, in ramp_speed
    self.ramp_in_progress_task = await spawn(_ramp_speed, daemon = True)
  File "[C:\src\lego\train.py]()", line 87, in start
    await self.motor.ramp_speed(SLOW_SPEED, 300)
  File "[C:\src\lego\train.py]()", line 174, in run
    await train.start()
  File "[C:\src\bricknil\bricknil\bricknil.py]()", line 149, in main
    await program
  File "[C:\src\bricknil\bricknil\bricknil.py]()", line 153, in run
    loop.run_until_complete(main())
  File "[C:\src\lego\train.py]()", line 179, in main
    bricknil.run(run())
  File "[C:\src\lego\train.py]()", line 184, in <module>
    main()