From 00e40d4e3e5995c20e0661a8ff18be328a7f99d2 Mon Sep 17 00:00:00 2001 From: coolnameismy Date: Wed, 16 Mar 2016 16:21:07 +0800 Subject: [PATCH] rename AutoReconnectDelete to AutoReconnectCancel --- Classes/objc/BabyBluetooth.h | 2 +- Classes/objc/BabyBluetooth.m | 2 +- .../BabyTestProject/BabyTestProjectTests/BabyTestProjectTests.m | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/objc/BabyBluetooth.h b/Classes/objc/BabyBluetooth.h index 3450298..5bd4edd 100644 --- a/Classes/objc/BabyBluetooth.h +++ b/Classes/objc/BabyBluetooth.h @@ -469,7 +469,7 @@ characteristic:(CBCharacteristic *)characteristic /** 删除断开自动重连的外设 */ -- (void)AutoReconnectDelete:(CBPeripheral *)peripheral; +- (void)AutoReconnectCancel:(CBPeripheral *)peripheral; #pragma mark - peripheral model diff --git a/Classes/objc/BabyBluetooth.m b/Classes/objc/BabyBluetooth.m index d239148..0151d21 100644 --- a/Classes/objc/BabyBluetooth.m +++ b/Classes/objc/BabyBluetooth.m @@ -597,7 +597,7 @@ - (void)AutoReconnect:(CBPeripheral *)peripheral{ /** 删除断开自动重连的外设 */ -- (void)AutoReconnectDelete:(CBPeripheral *)peripheral{ +- (void)AutoReconnectCancel:(CBPeripheral *)peripheral{ [babyCentralManager sometimes_never:peripheral]; } diff --git a/Test/BabyTestProject/BabyTestProjectTests/BabyTestProjectTests.m b/Test/BabyTestProject/BabyTestProjectTests/BabyTestProjectTests.m index f5f4f43..676fc28 100644 --- a/Test/BabyTestProject/BabyTestProjectTests/BabyTestProjectTests.m +++ b/Test/BabyTestProject/BabyTestProjectTests/BabyTestProjectTests.m @@ -250,7 +250,7 @@ - (void)testAutoReConnect { NSLog(@"设备:%@--已重新连接,测试成功",peripheral.name); [blockOnReConnectExp fulfill]; //清除自动重连接的状态 - [weakSelf.baby AutoReconnectDelete:peripheral]; + [weakSelf.baby AutoReconnectCancel:peripheral]; } else { NSLog(@"设备:%@--已连接",peripheral.name); //设置重新连接的设备