mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-23 09:41:03 +00:00
hci: assert can send now in initialization run
This commit is contained in:
parent
dfc5d4aed9
commit
0d37aff3fe
@ -1451,6 +1451,8 @@ static void hci_init_done(void){
|
|||||||
static void hci_initializing_run(void){
|
static void hci_initializing_run(void){
|
||||||
log_debug("hci_initializing_run: substate %u, can send %u", hci_stack->substate, hci_can_send_command_packet_now());
|
log_debug("hci_initializing_run: substate %u, can send %u", hci_stack->substate, hci_can_send_command_packet_now());
|
||||||
|
|
||||||
|
if (!hci_can_send_command_packet_now()) return;
|
||||||
|
|
||||||
#ifndef HAVE_HOST_CONTROLLER_API
|
#ifndef HAVE_HOST_CONTROLLER_API
|
||||||
bool need_baud_change = hci_stack->config
|
bool need_baud_change = hci_stack->config
|
||||||
&& hci_stack->chipset
|
&& hci_stack->chipset
|
||||||
@ -5087,6 +5089,7 @@ static bool hci_run_general_pending_commands(void){
|
|||||||
static void hci_run(void){
|
static void hci_run(void){
|
||||||
|
|
||||||
// stack state sub statemachines
|
// stack state sub statemachines
|
||||||
|
// halting needs to be called even if we cannot send command packet now
|
||||||
switch (hci_stack->state) {
|
switch (hci_stack->state) {
|
||||||
case HCI_STATE_INITIALIZING:
|
case HCI_STATE_INITIALIZING:
|
||||||
hci_initializing_run();
|
hci_initializing_run();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user