diff --git a/CocoaTouch/src/BTstackManager.m b/CocoaTouch/src/BTstackManager.m index 64eb66175..75d415606 100644 --- a/CocoaTouch/src/BTstackManager.m +++ b/CocoaTouch/src/BTstackManager.m @@ -33,7 +33,6 @@ #import #import -#import "../../RFCOMM/rfcomm.h" #define INQUIRY_INTERVAL 3 @@ -514,6 +513,7 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe if (deviceDict){ linkKey = [deviceDict objectForKey:PREFS_LINK_KEY]; } + if (linkKey) { // NSLog(@"Sending link key for %@, value %@", devAddress, linkKey); bt_send_cmd(&hci_link_key_request_reply, &event_addr, [linkKey bytes]);