Fix bug in examples/bluetooth/ble/ble_delegate: deleted references
to unused scanCallback property.
This commit is contained in:
parent
c5a523a8b8
commit
8ea3d57cf0
|
@ -7,7 +7,6 @@
|
|||
|
||||
BOOL wantScan;
|
||||
BOOL autoConnect;
|
||||
void (*scanCallback)(void* p);
|
||||
dispatch_queue_t q;
|
||||
CBUUID *looking_for;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user