mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Added small delay in example sketch
Also fixed qNextPollTime
This commit is contained in:
parent
6b93de24ce
commit
b66a8f214c
2 changed files with 3 additions and 2 deletions
|
@ -380,9 +380,9 @@ uint8_t PS3BT::Poll()
|
|||
if (!bPollEnable)
|
||||
return 0;
|
||||
if (qNextPollTime <= millis()) { // Don't poll if shorter than polling interval
|
||||
HCI_event_task(); // poll the HCI event pipe
|
||||
ACL_event_task(); // start polling the ACL input pipe too, though discard data until connected
|
||||
qNextPollTime = millis() + pollInterval; // Set new poll time
|
||||
HCI_event_task(); // poll the HCI event pipe
|
||||
ACL_event_task(); // start polling the ACL input pipe too, though discard data until connected
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -198,4 +198,5 @@ void loop()
|
|||
Serial.println(templow);
|
||||
}
|
||||
}
|
||||
delay(1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue