     # 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

    assert 0 == HCI.hci_dev_id_for(true)
    assert nil == HCI.hci_dev_id_for(false)
  end


  test "get some information about controller", %{hci: hci} do
    assert hci == GenServer.whereis(HCI)
    assert :ok = HCI.hci_init()
    assert true = HCI.hci_is_dev_up()
  end

  test "call hci_init", %{hci: hci}  do
    assert :ok = HCI.hci_init()
    # HCI.stop()
  end

  test "call foo", %{hci: hci} do
    assert hci == GenServer.whereis(HCI)
