Skip to content

Commit

Permalink
#161 Fix GAPManufacturerSpecificData.init(data:)
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Nov 5, 2024
1 parent 2999a80 commit b8d9824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/BluetoothGAP/GAPManufacturerSpecificData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public struct GAPManufacturerSpecificData <AdditionalData: DataContainer> : 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()
}
Expand Down

0 comments on commit b8d9824

Please sign in to comment.