Merge pull request #7 from TKJElectronics/master

Some dongles need a bigger delay before the hci_reset() command
This commit is contained in:
Oleg Mazurov 2012-03-24 09:49:26 -07:00
commit 7a35b3d37f

View file

@ -682,7 +682,7 @@ void PS3BT::HCI_task()
switch (hci_state){
case HCI_INIT_STATE:
hci_counter++;
if (hci_counter > 10) // wait until we have looped 10 times to clear any old events
if (hci_counter > 1000) // wait until we have looped 1000 times to clear any old events
{
hci_reset();
hci_state = HCI_RESET_STATE;
@ -700,7 +700,7 @@ void PS3BT::HCI_task()
hci_state = HCI_BDADDR_STATE;
hci_read_bdaddr();
}
if (hci_counter > 100)
else if (hci_counter > 1000)
{
#ifdef DEBUG
Notify(PSTR("\r\nNo response to HCI Reset"));