The line 128 caused crash, because wrong variable was referenced. Generally I don't think it's good idea to use the same variable name in function parameter as global variable.
After I fixed that one a second bug presented itself. The number of paired devices this->pairedDevicesCount is never updated with the new value, which causes constant stream of NDError.
I've discovered an bug when setting paired devices manually.
The line 128 caused crash, because wrong variable was referenced. Generally I don't think it's good idea to use the same variable name in function parameter as global variable.
After I fixed that one a second bug presented itself. The number of paired devices
this->pairedDevicesCount
is never updated with the new value, which causes constant stream ofNDError
.