Permalink
Browse files

Merge pull request #8 from TKJElectronics/master

Adjusted delay before reset
  • Loading branch information...
2 parents 7a35b3d + b5d0180 commit 45191747aa3b87e5af871b2f98b332b0e13e5b0f @felis committed Mar 24, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 PS3BT.cpp
View
@@ -682,7 +682,7 @@ void PS3BT::HCI_task()
switch (hci_state){
case HCI_INIT_STATE:
hci_counter++;
- if (hci_counter > 1000) // wait until we have looped 1000 times to clear any old events
+ if (hci_counter > 100) // wait until we have looped 100 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();
}
- else if (hci_counter > 1000)
+ else if (hci_counter > 100)
{
#ifdef DEBUG
Notify(PSTR("\r\nNo response to HCI Reset"));

0 comments on commit 4519174

Please sign in to comment.