diff options
author | Dave Madison <dmadison@users.noreply.github.com> | 2020-02-01 05:46:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-01 05:46:15 -0500 |
commit | 924299c159b619852d4c5eb1fc106db8a459d661 (patch) | |
tree | 39aad14af9ba55cc9f26f2920f6ff873552f4c62 /cores/arduino/USBCore.cpp | |
parent | 59dd6085ec8ec0a5438c1019e982fefb77f485d3 (diff) | |
parent | 923b4441fed740c5ff1e42bb8f2f58ea87d4eaf7 (diff) |
Merge pull request #6 from dmadison/upstream-updatesv1.0.1
Arduino Core 1.8.2
Diffstat (limited to 'cores/arduino/USBCore.cpp')
-rw-r--r-- | cores/arduino/USBCore.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cores/arduino/USBCore.cpp b/cores/arduino/USBCore.cpp index 6e820a1..b384984 100644 --- a/cores/arduino/USBCore.cpp +++ b/cores/arduino/USBCore.cpp @@ -825,4 +825,10 @@ bool USBDevice_::wakeupHost() return false; } +bool USBDevice_::isSuspended() +{ + return (_usbSuspendState & (1 << SUSPI)); +} + + #endif /* if defined(USBCON) */ |