     # HCI.stop()
   end
 
-  
+
 
 end

    assert :ok == HCI.hci_send_command(0x04, 0x01, <<>>)
    Process.sleep(500)
  end
  
  test "command package generation" do
    ogf = 4
    ocf = 1


  setup do
    {:ok, hci} = HCI.start_link()
    on_exit(:kill_HCI, fn ->
      ref = Process.monitor(hci)
      Process.exit(hci, :kill)
      receive do
        {:DOWN, ^ref, :process, ^hci, _} ->
          Logger.debug("Ok, HCI #{inspect hci} is down")
          :ok
      end
