Skip to content

Commit

Permalink
#161 Fix HCILEAdvertisingReport.init(data:)
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Nov 5, 2024
1 parent a788920 commit 204e078
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/BluetoothHCI/HCILEAdvertisingReport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ public struct HCILEAdvertisingReport: HCIEventParameter {
let responseData = data.subdataNoCopy(in: 9 ..< (9 + length))
assert(responseData.count == length)

guard let advertisingData = LowEnergyAdvertisingData(data: responseData)
else { return nil }
assert(responseData.count <= LowEnergyAdvertisingData.capacity)
let advertisingData = LowEnergyAdvertisingData(data: responseData)

self.responseData = advertisingData

Expand Down

0 comments on commit 204e078

Please sign in to comment.