@@ -28,7 +28,7 @@ protocol BluetoothManagerDelegate: class {
2828
2929 - returns: True if the peripheral should connect
3030 */
31- func bluetoothManager( manager: BluetoothManager , shouldConnectToPeripheral peripheral: CBPeripheral ) -> Bool
31+ func bluetoothManager( manager: BluetoothManager , shouldConnectPeripheral peripheral: CBPeripheral ) -> Bool
3232}
3333
3434
@@ -311,7 +311,7 @@ class BluetoothManager: NSObject, CBCentralManagerDelegate, CBPeripheralDelegate
311311 func centralManager( central: CBCentralManager , willRestoreState dict: [ String : AnyObject ] ) {
312312 if peripheral == nil , let peripherals = dict [ CBCentralManagerRestoredStatePeripheralsKey] as? [ CBPeripheral ] {
313313 for peripheral in peripherals {
314- if delegate == nil || delegate!. bluetoothManager ( self , shouldConnectToPeripheral : peripheral) {
314+ if delegate == nil || delegate!. bluetoothManager ( self , shouldConnectPeripheral : peripheral) {
315315 self . peripheral = peripheral
316316 peripheral. delegate = self
317317 }
@@ -321,7 +321,7 @@ class BluetoothManager: NSObject, CBCentralManagerDelegate, CBPeripheralDelegate
321321
322322 func centralManager( central: CBCentralManager , didDiscoverPeripheral peripheral: CBPeripheral , advertisementData: [ String : AnyObject ] , RSSI: NSNumber ) {
323323
324- if delegate == nil || delegate!. bluetoothManager ( self , shouldConnectToPeripheral : peripheral) {
324+ if delegate == nil || delegate!. bluetoothManager ( self , shouldConnectPeripheral : peripheral) {
325325 self . peripheral = peripheral
326326 peripheral. delegate = self
327327
0 commit comments