Fixed issue with filtering
MODIFY
BT-Tracking/Interface/Data List/DataListVM.swift
BT-Tracking/Interface/Data List/DataListVM.swift
@@ -40,7 +40,7 @@ class DataListVM {
return unfilteredScans.filter { scan in
guard let medianRssi = scan.medianRssi else { return false }
let medianRssiPoint = AppSettings.medianRssiPoint
- return selectedSegmentIndex == 0 ? (medianRssi < medianRssiPoint) : (medianRssi > medianRssiPoint)
+ return selectedSegmentIndex == 0 ? (medianRssi < medianRssiPoint) : true
}
}
.map { unsortedScans in

MODIFY
BT-Tracking/Services/AppSettings.swift
BT-Tracking/Services/AppSettings.swift
@@ -11,7 +11,7 @@ import Foundation
struct AppSettings {
static let firebaseRegion = "europe-west1"
- static let medianRssiPoint = 30
+ static let medianRssiPoint = -30
static var BUID: String? {
get {

Fixed issue with filtering