mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Fix unused variable warning
This commit is contained in:
parent
f369e7c500
commit
cf24646fe6
1 changed files with 0 additions and 6 deletions
|
@ -263,18 +263,12 @@ void USBH_MIDI::parseConfigDescr( uint8_t addr, uint8_t conf )
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG_USB_HOST
|
|
||||||
uint8_t bNumInt;
|
|
||||||
#endif
|
|
||||||
//parsing descriptors
|
//parsing descriptors
|
||||||
while( buf_ptr < buf + total_length ) {
|
while( buf_ptr < buf + total_length ) {
|
||||||
descr_length = *( buf_ptr );
|
descr_length = *( buf_ptr );
|
||||||
descr_type = *( buf_ptr + 1 );
|
descr_type = *( buf_ptr + 1 );
|
||||||
switch( descr_type ) {
|
switch( descr_type ) {
|
||||||
case USB_DESCRIPTOR_CONFIGURATION :
|
case USB_DESCRIPTOR_CONFIGURATION :
|
||||||
#ifdef DEBUG_USB_HOST
|
|
||||||
bNumInt = buf_ptr[4];
|
|
||||||
#endif
|
|
||||||
bConfNum = buf_ptr[5];
|
bConfNum = buf_ptr[5];
|
||||||
break;
|
break;
|
||||||
case USB_DESCRIPTOR_INTERFACE :
|
case USB_DESCRIPTOR_INTERFACE :
|
||||||
|
|
Loading…
Reference in a new issue