File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ public final class AndroidCentral: CentralManager {
100
100
guard hostController.isEnabled()
101
101
else { throw AndroidCentralError.bluetoothDisabled }
102
102
103
- guard let scanDevice = storage.state.scan.peripherals[peripheral]
103
+ guard let scanDevice = await storage.state.scan.peripherals[peripheral]
104
104
else { throw CentralError.unknownPeripheral }
105
105
106
106
// wait for connection continuation
@@ -502,13 +502,13 @@ public final class AndroidCentral: CentralManager {
502
502
guard hostController.isEnabled()
503
503
else { return }
504
504
505
- guard let scanner = hostController.lowEnergyScanner
505
+ guard let scanner = hostController.getBluetoothLeScanner()
506
506
else { return }
507
507
508
508
guard let scanCallBack = await self.storage.state.scan.callback
509
509
else { return }
510
510
511
- scanner.stopScan(callback: scanCallBack)
511
+ scanner.stopScan(scanCallBack)
512
512
}
513
513
514
514
@discardableResult
You can’t perform that action at this time.
0 commit comments