File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
hardware/arduino/avr/cores/arduino Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 25
25
26
26
extern uint8_t _initEndpoints[];
27
27
28
- int PluggableUSB_::getInterface (uint8_t * interfaceNum )
28
+ int PluggableUSB_::getInterface (uint8_t * interfaceCount )
29
29
{
30
30
int sent = 0 ;
31
31
PUSBListNode* node;
32
32
for (node = rootNode; node; node = node->next ) {
33
- int res = node->getInterface (interfaceNum );
33
+ int res = node->getInterface (interfaceCount );
34
34
if (res < 0 )
35
35
return -1 ;
36
36
sent += res;
@@ -50,11 +50,11 @@ int PluggableUSB_::getDescriptor(int8_t type)
50
50
return 0 ;
51
51
}
52
52
53
- bool PluggableUSB_::setup (USBSetup& setup, uint8_t j )
53
+ bool PluggableUSB_::setup (USBSetup& setup, uint8_t interfaceNum )
54
54
{
55
55
PUSBListNode* node;
56
56
for (node = rootNode; node; node = node->next ) {
57
- if (node->setup (setup, j )) {
57
+ if (node->setup (setup, interfaceNum )) {
58
58
return true ;
59
59
}
60
60
}
Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ class PUSBListNode {
35
35
inline int8_t endpoint () const { return pluggedEndpoint; }
36
36
37
37
protected:
38
- virtual bool setup (USBSetup& setup, uint8_t i ) = 0;
39
- virtual int getInterface (uint8_t * interfaceNum ) = 0;
38
+ virtual bool setup (USBSetup& setup, uint8_t interfaceNum ) = 0;
39
+ virtual int getInterface (uint8_t * interfaceCount ) = 0;
40
40
virtual int getDescriptor (int8_t t) = 0;
41
41
42
42
uint8_t pluggedInterface;
@@ -55,9 +55,9 @@ class PluggableUSB_ {
55
55
public:
56
56
PluggableUSB_ ();
57
57
bool plug (PUSBListNode *node);
58
- int getInterface (uint8_t * interfaceNum );
59
- int getDescriptor (int8_t t );
60
- bool setup (USBSetup& setup, uint8_t i );
58
+ int getInterface (uint8_t * interfaceCount );
59
+ int getDescriptor (int8_t type );
60
+ bool setup (USBSetup& setup, uint8_t interfaceNum );
61
61
62
62
private:
63
63
uint8_t lastIf;
You can’t perform that action at this time.
0 commit comments