mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-05 09:40:00 +00:00
added commented debug helpers
This commit is contained in:
parent
2b12a0b920
commit
53b86778bb
@ -852,7 +852,10 @@ void hci_run(){
|
|||||||
|
|
||||||
connection = (hci_connection_t *) it;
|
connection = (hci_connection_t *) it;
|
||||||
|
|
||||||
if (!hci_can_send_packet_now(HCI_COMMAND_DATA_PACKET)) return;
|
if (!hci_can_send_packet_now(HCI_COMMAND_DATA_PACKET)) {
|
||||||
|
// log_dbg("hci_init: cannot send command packet\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (connection->state == RECEIVED_CONNECTION_REQUEST){
|
if (connection->state == RECEIVED_CONNECTION_REQUEST){
|
||||||
log_dbg("sending hci_accept_connection_request\n");
|
log_dbg("sending hci_accept_connection_request\n");
|
||||||
@ -878,6 +881,7 @@ void hci_run(){
|
|||||||
|
|
||||||
switch (hci_stack.state){
|
switch (hci_stack.state){
|
||||||
case HCI_STATE_INITIALIZING:
|
case HCI_STATE_INITIALIZING:
|
||||||
|
// log_dbg("hci_init: substate %u\n", hci_stack.substate);
|
||||||
if (hci_stack.substate % 2) {
|
if (hci_stack.substate % 2) {
|
||||||
// odd: waiting for command completion
|
// odd: waiting for command completion
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user