diff --git a/examples/bluetooth/ble/ble_delegate.h b/examples/bluetooth/ble/ble_delegate.h index f673c12..72bd864 100644 --- a/examples/bluetooth/ble/ble_delegate.h +++ b/examples/bluetooth/ble/ble_delegate.h @@ -7,7 +7,6 @@ BOOL wantScan; BOOL autoConnect; - void (*scanCallback)(void* p); dispatch_queue_t q; CBUUID *looking_for; } diff --git a/examples/bluetooth/ble/ble_delegate.m b/examples/bluetooth/ble/ble_delegate.m index f8bd6b8..1fb80f1 100644 --- a/examples/bluetooth/ble/ble_delegate.m +++ b/examples/bluetooth/ble/ble_delegate.m @@ -65,7 +65,6 @@ - (void) stopScan { [manager stopScan]; - scanCallback(nil); } #pragma mark - CBCentralManager delegate methods @@ -126,8 +125,6 @@ [self stopScan]; printf("Connecting\n"); [manager connectPeripheral:aPeripheral options:[NSDictionary dictionaryWithObject:[NSNumber numberWithBool:YES] forKey:CBConnectPeripheralOptionNotifyOnDisconnectionKey]]; - } else { - scanCallback(aPeripheral); } }