adafruit / Adafruit_CircuitPython_BLE_MIDI

BLE MIDI for CircuitPython
MIT License
14 stars 3 forks source link

Don't allocate packet buf until connected #3

Closed dhalbert closed 4 years ago

dhalbert commented 4 years ago

This goes in hand with https://github.com/adafruit/circuitpython/pull/2799. Don't allocate packet buffer until we're connected. At that time we know the MTU of the connection and therefore know how big the packet buffer can be.

dhalbert commented 4 years ago