Skip to content

Add USBDevice.isSuspended() #54

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

Merged
merged 1 commit into from
Dec 19, 2018
Merged

Add USBDevice.isSuspended() #54

merged 1 commit into from
Dec 19, 2018

Conversation

algernon
Copy link
Contributor

Based on code originally by Rob van der Veer (from arduino/Arduino#4241), this adds USBDevice.isSuspended(), so user sketches can run custom code in their loop methods after checking if the device is suspended or not.

This is a port of arduino/Arduino#6964 to ArduinoCore-avr. Please let me know if there's anything you want changed, and I'll update the pull request accordingly.

Based on code originally by Rob van der Veer <[email protected]>, this adds
USBDevice.isSuspended(), so user sketches can run custom code in their `loop`
methods after checking if the device is suspended or not.

Signed-off-by: Gergely Nagy <[email protected]>
@facchinm
Copy link
Member

LGTM

@frequenzteiler
Copy link

is this callbacks already implemented in the new arduino libs ?
can i use it ?

@facchinm facchinm merged commit 6ba4fd3 into arduino:master Dec 19, 2018
@algernon
Copy link
Contributor Author

🎆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants