From 8ea3d57cf0d49eb7cedcbfc8a1dbd1b725aaed8a Mon Sep 17 00:00:00 2001 From: Greg Date: Thu, 2 May 2019 14:22:20 -0400 Subject: [PATCH] Fix bug in examples/bluetooth/ble/ble_delegate: deleted references to unused scanCallback property. --- examples/bluetooth/ble/ble_delegate.h | 1 - examples/bluetooth/ble/ble_delegate.m | 3 --- 2 files changed, 4 deletions(-) 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); } }