Fix unused variable warning

This commit is contained in:
Yuuichi Akagawa 2016-04-27 00:28:57 +09:00
parent f369e7c500
commit cf24646fe6

View file

@ -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 :