fix: show all BLE devices in scan, no filtering

Remove the guard that dropped non-CP-28 devices. All discovered
BLE peripherals now appear in the scan list (defaulting to .dxsmart
type). detectBeaconType still classifies known CP-28 patterns but
unknown devices are no longer hidden.
This commit is contained in:
Schwifty 2026-03-23 03:18:11 +00:00
parent f0fdb04e0e
commit 734a18356f

View file

@ -227,10 +227,8 @@ extension BLEManager: CBCentralManagerDelegate {
DispatchQueue.main.async { [weak self] in DispatchQueue.main.async { [weak self] in
guard let self else { return } guard let self else { return }
// Only show CP-28 beacons everything else is filtered out // Detect beacon type default to .dxsmart so ALL devices show up in scan
guard let type = self.detectBeaconType(name: name, serviceUUIDs: serviceUUIDs, manufacturerData: mfgData) else { let type = self.detectBeaconType(name: name, serviceUUIDs: serviceUUIDs, manufacturerData: mfgData) ?? .dxsmart
return
}
if let idx = self.discoveredBeacons.firstIndex(where: { $0.id == peripheralId }) { if let idx = self.discoveredBeacons.firstIndex(where: { $0.id == peripheralId }) {
self.discoveredBeacons[idx].rssi = rssiValue self.discoveredBeacons[idx].rssi = rssiValue