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.
1 parent 1fb2e22 commit d3da6afCopy full SHA for d3da6af
hardware/arduino/avr/cores/arduino/PluggableUSB.h
@@ -27,10 +27,9 @@
27
28
class PUSBListNode {
29
public:
30
- PUSBListNode() { }
31
- int8_t numEndpoints;
32
- int8_t numInterfaces;
33
- uint8_t *endpointType;
+ PUSBListNode(int8_t numEps, int8_t numIfs, uint8_t *epType) :
+ numEndpoints(numEps), numInterfaces(numIfs), endpointType(epType)
+ { }
34
35
inline uint8_t interface() const { return pluggedInterface; }
36
inline int8_t endpoint() const { return pluggedEndpoint; }
@@ -43,6 +42,10 @@ class PUSBListNode {
43
42
uint8_t pluggedInterface;
44
int8_t pluggedEndpoint;
45
+ const int8_t numEndpoints;
46
+ const int8_t numInterfaces;
47
+ const uint8_t *endpointType;
48
+
49
50
PUSBListNode *next = NULL;
51
0 commit comments