mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-17 02:42:33 +00:00
don't set name to empty string on error in CocoaTouch
This commit is contained in:
parent
fcd89c885f
commit
dccfe44c6b
@ -114,7 +114,7 @@ void packet_handler(uint8_t packet_type, uint8_t *packet, uint16_t size){
|
||||
break;
|
||||
|
||||
case HCI_EVENT_REMOTE_NAME_REQUEST_COMPLETE:
|
||||
{
|
||||
if (data[2] == 0) {
|
||||
bt_flip_addr(event_addr, &data[3]);
|
||||
BTDevice *dev = [self getDeviceForAddress:&event_addr];
|
||||
if (!dev) break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user