From b8d9824978c1dd3a85f7f69f7e99df7ee7274708 Mon Sep 17 00:00:00 2001 From: Alsey Coleman Miller Date: Mon, 4 Nov 2024 23:49:42 -0500 Subject: [PATCH] #161 Fix `GAPManufacturerSpecificData.init(data:)` --- Sources/BluetoothGAP/GAPManufacturerSpecificData.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/BluetoothGAP/GAPManufacturerSpecificData.swift b/Sources/BluetoothGAP/GAPManufacturerSpecificData.swift index 0369a2e75..6f3cc0a18 100644 --- a/Sources/BluetoothGAP/GAPManufacturerSpecificData.swift +++ b/Sources/BluetoothGAP/GAPManufacturerSpecificData.swift @@ -43,7 +43,7 @@ public struct GAPManufacturerSpecificData : GAPD self.companyIdentifier = CompanyIdentifier(rawValue: UInt16(littleEndian: UInt16(bytes: (data[0], data[1])))) if data.count > 2 { - self.additionalData = AdditionalData(data[2 ..< 2 + data.count]) + self.additionalData = AdditionalData(data[2 ..< data.count]) } else { self.additionalData = AdditionalData() }