From 26eaf586d11c339788ae23a1df2e1977c469d2a9 Mon Sep 17 00:00:00 2001 From: Alex McLain Date: Tue, 15 Mar 2022 13:00:48 -0700 Subject: [PATCH] Fix issue with init commands timing out --- lib/blue_heron/hci/transport.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/blue_heron/hci/transport.ex b/lib/blue_heron/hci/transport.ex index f6b2df0..f8f082f 100644 --- a/lib/blue_heron/hci/transport.ex +++ b/lib/blue_heron/hci/transport.ex @@ -187,7 +187,7 @@ defmodule BlueHeron.HCI.Transport do case module.send_command(pid, command) do true -> Logger.hci_packet(:HCI_COMMAND_DATA_PACKET, :out, command) - {:keep_state, %{data | init_commands: rest}, []} + prepare(:internal, :init, %{data | init_commands: rest}) false -> Logger.error("Init command: #{inspect(command)} failed")