summaryrefslogtreecommitdiff
path: root/hid/arduino/patches/arduino-get-plugged-endpoint.patch
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-07-31 02:17:23 +0300
committerMaxim Devaev <[email protected]>2023-07-31 02:17:23 +0300
commit1a8f98a64f9480c1062225e0fc994ceac4ba346d (patch)
tree934ac95c6c0774d6ac512860905d4d2454b0b2aa /hid/arduino/patches/arduino-get-plugged-endpoint.patch
parentcf44668af998b114fbddc8fa41b47193b606c064 (diff)
moved arduino hid to hid/arduino
Diffstat (limited to 'hid/arduino/patches/arduino-get-plugged-endpoint.patch')
-rw-r--r--hid/arduino/patches/arduino-get-plugged-endpoint.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/hid/arduino/patches/arduino-get-plugged-endpoint.patch b/hid/arduino/patches/arduino-get-plugged-endpoint.patch
new file mode 100644
index 00000000..c32131ff
--- /dev/null
+++ b/hid/arduino/patches/arduino-get-plugged-endpoint.patch
@@ -0,0 +1,11 @@
+--- a/cores/arduino/PluggableUSB.h 2019-05-16 15:52:01.000000000 +0300
++++ b/cores/arduino/PluggableUSB.h 2020-11-14 20:57:30.942432544 +0300
+@@ -31,6 +31,8 @@
+ numEndpoints(numEps), numInterfaces(numIfs), endpointType(epType)
+ { }
+
++ uint8_t getPluggedEndpoint() { return pluggedEndpoint; }
++
+ protected:
+ virtual bool setup(USBSetup& setup) = 0;
+ virtual int getInterface(uint8_t* interfaceCount) = 0;