From 0decdf3eca1b85b711d241112bb7f7b928cf6b18 Mon Sep 17 00:00:00 2001 From: Pavel Ivashkov Date: Fri, 19 May 2017 12:00:50 +0300 Subject: [PATCH] ~ fixed ios 8 deprecation warning --- source/Profiles/PTDBleDevice.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/Profiles/PTDBleDevice.m b/source/Profiles/PTDBleDevice.m index 11c48a5..bf25d4a 100644 --- a/source/Profiles/PTDBleDevice.m +++ b/source/Profiles/PTDBleDevice.m @@ -139,7 +139,7 @@ - (void)peripheral:(CBPeripheral *)peripheral didReadRSSI:(NSNumber *)RSSI error [self.delegate deviceDidUpdateRSSI:self error:error]; } } -#endif +#else - (void)peripheralDidUpdateRSSI:(CBPeripheral *)peripheral error:(NSError *)error{ if (error) PTDLog(@"PTDBleDevice error: peripheralDidUpdateRSSI: %@ error: %@", peripheral, error); NSDictionary *params = [[NSDictionary alloc] initWithObjectsAndKeys: @@ -161,6 +161,7 @@ - (void)peripheralDidUpdateRSSI:(CBPeripheral *)peripheral error:(NSError *)erro [self.delegate deviceDidUpdateRSSI:self error:error]; } } +#endif - (void)peripheral:(CBPeripheral *)peripheral didDiscoverServices:(NSError *)error{ if (error) PTDLog(@"PTDBleDevice error: peripheral:%@ didDiscoverServices: error:%@", peripheral, error); NSDictionary *params = [[NSDictionary alloc] initWithObjectsAndKeys: