antonvh / mpy-robot-tools

Install on a SPIKE Legacy or LEGO MINDSTORMS Robot Inventor hub for easy Bluetooth communication, animation, and motor synchronization.
https://antonsmindstorms.com
GNU General Public License v3.0
35 stars 11 forks source link

error in rc.py #12

Closed ste7anste7an closed 2 years ago

ste7anste7an commented 2 years ago

When calling: rcv = RCReceiver(name="roto") I get this error:

  File "<stdin>", line 1, in <module>
  File "../mpy_robot_tools/rc.py", line 44, in __init__
TypeError: unexpected keyword argument 'buffered'

Probably this has to do with incompatibility in the bt.py defined class:

class UARTPeripheral(BleUARTBase):
    """
    Class for a Nordic UART BLE server/peripheral.
    It will advertise as the given name and populate the UART services and characteristics
    """

    def __init__(self, name="robot", ble_handler: BLEHandler = None, additive_buffer=True):
        super().__init__(additive_buffer)

where no parameter buffered is defined.