Compare commits
No commits in common. "c879ecd44263009f07a38d74649d3b773ecd1af1" and "df2a03f15abcb4bc39a06b4a45a2ad8759ae2bf6" have entirely different histories.
c879ecd442
...
df2a03f15a
2 changed files with 1 additions and 4 deletions
|
|
@ -274,9 +274,6 @@ extension BLEManager: CBCentralManagerDelegate {
|
|||
)
|
||||
discoveredBeacons.append(beacon)
|
||||
}
|
||||
|
||||
// Keep list sorted by RSSI (strongest/closest first)
|
||||
discoveredBeacons.sort { $0.rssi > $1.rssi }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -301,7 +301,7 @@ struct ScanView: View {
|
|||
.padding()
|
||||
}
|
||||
} else {
|
||||
List(bleManager.discoveredBeacons.sorted { $0.rssi > $1.rssi }) { beacon in
|
||||
List(bleManager.discoveredBeacons) { beacon in
|
||||
Button {
|
||||
selectedBeacon = beacon
|
||||
Task { await startProvisioning(beacon) }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue