We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4efd686 + c87bc7b commit 6ba4fd3Copy full SHA for 6ba4fd3
cores/arduino/USBAPI.h
@@ -65,6 +65,8 @@ class USBDevice_
65
void detach(); // Serial port goes down too...
66
void poll();
67
bool wakeupHost(); // returns false, when wakeup cannot be processed
68
+
69
+ bool isSuspended();
70
};
71
extern USBDevice_ USBDevice;
72
cores/arduino/USBCore.cpp
@@ -855,4 +855,10 @@ bool USBDevice_::wakeupHost()
855
return false;
856
}
857
858
+bool USBDevice_::isSuspended()
859
+{
860
+ return (_usbSuspendState & (1 << SUSPI));
861
+}
862
863
864
#endif /* if defined(USBCON) */
0 commit comments