From 17f3e8f06dd8a2534473820b30721ab8a0fba911 Mon Sep 17 00:00:00 2001 From: Lukas Kollmer Date: Mon, 2 Sep 2024 22:06:12 +0200 Subject: [PATCH] fix ambiguous selector --- .../ble/api/model/advertisement/BleRssiFilter.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/iOS/ios-communications/Sources/iOSCommunications/ble/api/model/advertisement/BleRssiFilter.swift b/sources/iOS/ios-communications/Sources/iOSCommunications/ble/api/model/advertisement/BleRssiFilter.swift index 242e6c63..bd35f3c1 100644 --- a/sources/iOS/ios-communications/Sources/iOSCommunications/ble/api/model/advertisement/BleRssiFilter.swift +++ b/sources/iOS/ios-communications/Sources/iOSCommunications/ble/api/model/advertisement/BleRssiFilter.swift @@ -17,7 +17,7 @@ public class BleRssiFilter{ sortedRssis.addObjects(from: rssiValues as [AnyObject]) let highestToLowest = NSSortDescriptor(key: "self", ascending: false) sortedRssis.sort(using: [highestToLowest]) - self.medianRssi = (sortedRssis.object(at: 3) as AnyObject).int32Value + self.medianRssi = (sortedRssis.object(at: 3) as! NSNumber).int32Value self.rssiValues.removeObject(at: 0) } else { self.medianRssi = rssi