 // MARK: - Internal HCI Functions
 
 /// Returns event parameter data.
-internal func HCISendRequest(_ deviceDescriptor: CInt, opcode: (commandField: UInt16, groupField: UInt16), commandParameterData: [UInt8] = [], event: UInt8 = 0, eventParameterLength: Int = 0, timeout: Int = 1000) throws -> [UInt8] {
+internal func HCISendRequest(_ deviceDescriptor: CInt,
+                             opcode: (commandField: UInt16, groupField: UInt16),
+                             commandParameterData: [UInt8] = [],
+                             event: UInt8 = 0,
+                             eventParameterLength: Int = 0,
+                             timeout: Int = 1000) throws -> [UInt8] {
 
     // assertions
     assert(timeout >= 0, "Negative timeout value")

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

        case HCIGeneralEvent.CommandComplete.rawValue:
            


        let opcode = (CP.command.rawValue, type(of: CP.command).opcodeGroupField.rawValue)

        let data = try HCISendRequest(internalSocket,
                                      opcode: opcode,
                                      commandParameterData: commandParameter.byteValue,
                                      eventParameterLength: 1,
                                      timeout: timeout)

        guard let statusByte = data.first
            else { fatalError("Missing status byte!") }
