MIDI driver was not setting the debug level either

This commit is contained in:
Kristian Sloth Lauszus 2016-04-14 23:12:18 +02:00
parent 8f3faf2bb8
commit 0039719970

View file

@ -420,20 +420,20 @@ uint8_t USBH_MIDI::SendData(uint8_t *dataptr, byte nCable)
#ifdef DEBUG_USB_HOST #ifdef DEBUG_USB_HOST
void USBH_MIDI::PrintEndpointDescriptor( const USB_ENDPOINT_DESCRIPTOR* ep_ptr ) void USBH_MIDI::PrintEndpointDescriptor( const USB_ENDPOINT_DESCRIPTOR* ep_ptr )
{ {
Notify(PSTR("Endpoint descriptor:")); Notify(PSTR("Endpoint descriptor:"), 0x80);
Notify(PSTR("\r\nLength:\t\t")); Notify(PSTR("\r\nLength:\t\t"), 0x80);
PrintHex<uint8_t>(ep_ptr->bLength); PrintHex<uint8_t>(ep_ptr->bLength, 0x80);
Notify(PSTR("\r\nType:\t\t")); Notify(PSTR("\r\nType:\t\t"), 0x80);
PrintHex<uint8_t>(ep_ptr->bDescriptorType); PrintHex<uint8_t>(ep_ptr->bDescriptorType, 0x80);
Notify(PSTR("\r\nAddress:\t")); Notify(PSTR("\r\nAddress:\t"), 0x80);
PrintHex<uint8_t>(ep_ptr->bEndpointAddress); PrintHex<uint8_t>(ep_ptr->bEndpointAddress, 0x80);
Notify(PSTR("\r\nAttributes:\t")); Notify(PSTR("\r\nAttributes:\t"), 0x80);
PrintHex<uint8_t>(ep_ptr->bmAttributes); PrintHex<uint8_t>(ep_ptr->bmAttributes, 0x80);
Notify(PSTR("\r\nMaxPktSize:\t")); Notify(PSTR("\r\nMaxPktSize:\t"), 0x80);
PrintHex<uint16_t>(ep_ptr->wMaxPacketSize); PrintHex<uint16_t>(ep_ptr->wMaxPacketSize, 0x80);
Notify(PSTR("\r\nPoll Intrv:\t")); Notify(PSTR("\r\nPoll Intrv:\t"), 0x80);
PrintHex<uint8_t>(ep_ptr->bInterval); PrintHex<uint8_t>(ep_ptr->bInterval, 0x80);
Notify(PSTR("\r\n")); Notify(PSTR("\r\n"), 0x80);
} }
#endif #endif