Skip to content

Commit

Permalink
Merge branch 'master' into nonblockRead
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Sep 11, 2018
2 parents 584d2b2 + b63ac95 commit 8bce039
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/BluetoothLinux/DeviceRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -385,12 +385,12 @@ internal func HCISendRequest <Command: HCICommand> (_ deviceDescriptor: CInt,
else { fatalError("HCI Command 'RemoteNameRequest' was sent, but the event parameter data does not correspond to 'RemoteNameRequestParameter'") }

// must be different, for some reason
guard commandParameter.address != parameter.address else { continue }
guard commandParameter.address == parameter.address else { continue }
}

// success!
try done()
let dataLength = min(eventData.count - 1, eventParameterLength)
let dataLength = min(eventData.count, eventParameterLength)
return Data(eventData.suffix(dataLength))

case .lowEnergyMeta:
Expand Down

0 comments on commit 8bce039

Please sign in to comment.