If something within BLELocalDevice::begin() fail calls to end will fault #324
Labels
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
In the case that I was debugging, I am testing running the library on top of the USBHost_t36 code on Teensy 3.6 or 4.x.
It works with some Bluetooth dongles and not others. In the case I am debugging it faults when I use a CSR 4.0 dongle.
I traced it to the call:
It failed with error code 0x12.
The call to end() ends up faulting.
The reason GATT.begin();
has not been called. It is called near the end of the BLELocalDevice::begin() ,
And BLELocalDevice::end() calls GATT.end.
And GAT.end() calls off and deletes objects which have not yet been created.
Possible fixes:
like:
Wondering if is the same issue, that is mentioned in #273
The text was updated successfully, but these errors were encountered: