Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support for Adafruit TinyUSB devices #120

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove hardcoded poll interval
  • Loading branch information
outlandnish committed Aug 8, 2019

Verified

This commit was signed with the committer’s verified signature.
snyk-bot Snyk bot
commit 3cb9d6932652825ac948923123e231b74082d8ff
2 changes: 1 addition & 1 deletion Joystick/src/Joystick.cpp
Original file line number Diff line number Diff line change
@@ -482,7 +482,7 @@ Joystick_::Joystick_(
void Joystick_::begin(bool initAutoSendState, uint8_t intervalMs)
{
#ifdef USE_TINYUSB
_usb_hid.setPollInterval(2);
_usb_hid.setPollInterval(intervalMs);
_usb_hid.begin();

while(!USBDevice.mounted()) delay(1);