Increased timeout before scanning again

This commit is contained in:
Kristian Lauszus 2012-08-08 19:21:57 +02:00
parent 76020527f8
commit 0719b242af

View file

@ -566,7 +566,7 @@ void BTD::HCI_task() {
case HCI_DONE_STATE: case HCI_DONE_STATE:
hci_counter++; hci_counter++;
if (hci_counter > 100) { // Wait until we have looped 100 times to make sure that the L2CAP connection has been started if (hci_counter > 250) { // Wait until we have looped 250 times to make sure that the L2CAP connection has been started
hci_state = HCI_SCANNING_STATE; hci_state = HCI_SCANNING_STATE;
l2capConnectionClaimed = false; l2capConnectionClaimed = false;
} }