From bf646fdd0e1c456f3f4187b4ecac358e8c3bce9f Mon Sep 17 00:00:00 2001 From: Kristian Lauszus Date: Wed, 19 Sep 2012 23:21:07 +0200 Subject: [PATCH] Forgot to reset hci_counter --- BTD.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/BTD.cpp b/BTD.cpp index e97da014..321ab324 100644 --- a/BTD.cpp +++ b/BTD.cpp @@ -679,6 +679,7 @@ void BTD::HCI_task() { case HCI_DONE_STATE: hci_counter++; if (hci_counter > 250) { // Wait until we have looped 250 times to make sure that the L2CAP connection has been started + hci_counter = 0; hci_state = HCI_SCANNING_STATE; l2capConnectionClaimed = false; }