mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-06 01:08:25 +01:00
Fix compiler warnings in USBCore.cpp
This commit is contained in:
parent
bd1124eb0f
commit
228fa37568
@ -372,8 +372,8 @@ bool ClassInterfaceRequest(USBSetup& setup)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
int _cmark;
|
static int _cmark;
|
||||||
int _cend;
|
static int _cend;
|
||||||
void InitControl(int end)
|
void InitControl(int end)
|
||||||
{
|
{
|
||||||
SetEP(0);
|
SetEP(0);
|
||||||
@ -438,7 +438,7 @@ int USB_RecvControl(void* d, int len)
|
|||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
int SendInterfaces()
|
static u8 SendInterfaces()
|
||||||
{
|
{
|
||||||
u8 interfaces = 0;
|
u8 interfaces = 0;
|
||||||
|
|
||||||
@ -459,7 +459,7 @@ bool SendConfiguration(int maxlen)
|
|||||||
{
|
{
|
||||||
// Count and measure interfaces
|
// Count and measure interfaces
|
||||||
InitControl(0);
|
InitControl(0);
|
||||||
int interfaces = SendInterfaces();
|
u8 interfaces = SendInterfaces();
|
||||||
ConfigDescriptor config = D_CONFIG(_cmark + sizeof(ConfigDescriptor),interfaces);
|
ConfigDescriptor config = D_CONFIG(_cmark + sizeof(ConfigDescriptor),interfaces);
|
||||||
|
|
||||||
// Now send them
|
// Now send them
|
||||||
@ -469,7 +469,7 @@ bool SendConfiguration(int maxlen)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
u8 _cdcComposite = 0;
|
static u8 _cdcComposite = 0;
|
||||||
|
|
||||||
static
|
static
|
||||||
bool SendDescriptor(USBSetup& setup)
|
bool SendDescriptor(USBSetup& setup)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user