File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
hardware/arduino/avr/cores/arduino Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -372,8 +372,8 @@ bool ClassInterfaceRequest(USBSetup& setup)
372372 return false ;
373373}
374374
375- int _cmark;
376- int _cend;
375+ static int _cmark;
376+ static int _cend;
377377void InitControl (int end)
378378{
379379 SetEP (0 );
@@ -438,7 +438,7 @@ int USB_RecvControl(void* d, int len)
438438 return len;
439439}
440440
441- int SendInterfaces ()
441+ static u8 SendInterfaces ()
442442{
443443 u8 interfaces = 0 ;
444444
@@ -459,7 +459,7 @@ bool SendConfiguration(int maxlen)
459459{
460460 // Count and measure interfaces
461461 InitControl (0 );
462- int interfaces = SendInterfaces ();
462+ u8 interfaces = SendInterfaces ();
463463 ConfigDescriptor config = D_CONFIG (_cmark + sizeof (ConfigDescriptor),interfaces);
464464
465465 // Now send them
@@ -469,7 +469,7 @@ bool SendConfiguration(int maxlen)
469469 return true ;
470470}
471471
472- u8 _cdcComposite = 0 ;
472+ static u8 _cdcComposite = 0 ;
473473
474474static
475475bool SendDescriptor (USBSetup& setup)
You can’t perform that action at this time.
0 commit comments