Remove setting RSSI to nil of a remote service when it updates its configuration
This commit is contained in:
parent
c017a81bc8
commit
0052e9072a
|
@ -1289,10 +1289,6 @@ extension BluetoothController: CBPeripheralManagerDelegate {
|
|||
if let services = self.servicesOfPeripherals[peripheral] {
|
||||
self.service?.servicesInRange.subtract(services)
|
||||
}
|
||||
self.servicesOfPeripherals[peripheral]?.forEach {
|
||||
$0.rssi = nil
|
||||
}
|
||||
self.rssiOfPeripherals[peripheral] = nil
|
||||
self.servicesOfPeripherals.removeValue(forKey: peripheral)
|
||||
// Drastic, but works
|
||||
self.discoveredPeripherals.remove(peripheral)
|
||||
|
|
Loading…
Reference in New Issue