Skip to content

Commit a330818

Browse files
committed
Fix AndroidCentral.peripherals
1 parent 059fb68 commit a330818

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Sources/AndroidBluetooth/AndroidCentral.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ public final class AndroidCentral: CentralManager {
3737

3838
public var peripherals: [GATT.Peripheral : Bool] {
3939
get async {
40-
[:] // FIXME:
40+
await storage.state.scan.peripherals.keys.reduce(into: [:]) { result, peripheral in
41+
result[peripheral] = await storage.state.cache[peripheral] != nil
42+
}
4143
}
4244
}
4345

0 commit comments

Comments
 (0)