mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Added more debugging when connection is established
This commit is contained in:
parent
dd39e62a69
commit
16f9c97cd6
1 changed files with 3 additions and 0 deletions
3
BTD.cpp
3
BTD.cpp
|
@ -461,6 +461,9 @@ void BTD::HCI_event_task() {
|
||||||
case EV_CONNECT_COMPLETE:
|
case EV_CONNECT_COMPLETE:
|
||||||
hci_event_flag |= HCI_FLAG_CONNECT_EVENT;
|
hci_event_flag |= HCI_FLAG_CONNECT_EVENT;
|
||||||
if (!hcibuf[2]) { // check if connected OK
|
if (!hcibuf[2]) { // check if connected OK
|
||||||
|
#ifdef EXTRADEBUG
|
||||||
|
Notify(PSTR("\r\nConnection established"), 0x80);
|
||||||
|
#endif
|
||||||
hci_handle = hcibuf[3] | ((hcibuf[4] & 0x0F) << 8); // store the handle for the ACL connection
|
hci_handle = hcibuf[3] | ((hcibuf[4] & 0x0F) << 8); // store the handle for the ACL connection
|
||||||
hci_event_flag |= HCI_FLAG_CONN_COMPLETE; // set connection complete flag
|
hci_event_flag |= HCI_FLAG_CONN_COMPLETE; // set connection complete flag
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue