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 wantScan;
|
||||||
BOOL autoConnect;
|
BOOL autoConnect;
|
||||||
void (*scanCallback)(void* p);
|
|
||||||
dispatch_queue_t q;
|
dispatch_queue_t q;
|
||||||
CBUUID *looking_for;
|
CBUUID *looking_for;
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,7 +65,6 @@
|
||||||
- (void) stopScan
|
- (void) stopScan
|
||||||
{
|
{
|
||||||
[manager stopScan];
|
[manager stopScan];
|
||||||
scanCallback(nil);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma mark - CBCentralManager delegate methods
|
#pragma mark - CBCentralManager delegate methods
|
||||||
|
@ -126,8 +125,6 @@
|
||||||
[self stopScan];
|
[self stopScan];
|
||||||
printf("Connecting\n");
|
printf("Connecting\n");
|
||||||
[manager connectPeripheral:aPeripheral options:[NSDictionary dictionaryWithObject:[NSNumber numberWithBool:YES] forKey:CBConnectPeripheralOptionNotifyOnDisconnectionKey]];
|
[manager connectPeripheral:aPeripheral options:[NSDictionary dictionaryWithObject:[NSNumber numberWithBool:YES] forKey:CBConnectPeripheralOptionNotifyOnDisconnectionKey]];
|
||||||
} else {
|
|
||||||
scanCallback(aPeripheral);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user