Skip to content

Commit 17734c5

Browse files
committed
Fixed MIDI descriptors
To be compliant with the one sent by the AVR core
1 parent e676868 commit 17734c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cores/arduino/USB/USBCore.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,13 +251,13 @@ typedef struct
251251
_Pragma("pack()")
252252

253253
#define D_DEVICE(_class,_subClass,_proto,_packetSize0,_vid,_pid,_version,_im,_ip,_is,_configs) \
254-
{ 18, 1, 0x110, _class,_subClass,_proto,_packetSize0,_vid,_pid,_version,_im,_ip,_is,_configs }
254+
{ 18, 1, 0x200, _class,_subClass,_proto,_packetSize0,_vid,_pid,_version,_im,_ip,_is,_configs }
255255
/* Table 9-8. Standard Device Descriptor
256256
* bLength, bDescriptorType, bcdUSB, bDeviceClass, bDeviceSubClass, bDeviceProtocol, bMaxPacketSize0,
257257
* idVendor, idProduct, bcdDevice, iManufacturer, iProduct, iSerialNumber, bNumConfigurations */
258258

259259
#define D_CONFIG(_totalLength,_interfaces) \
260-
{ 9, 2, _totalLength,_interfaces, 1, 0, USB_CONFIG_SELF_POWERED, USB_CONFIG_POWER_MA(500) }
260+
{ 9, 2, _totalLength,_interfaces, 1, 0, USB_CONFIG_BUS_POWERED, USB_CONFIG_POWER_MA(500) }
261261
/* Table 9-10. Standard Configuration Descriptor
262262
* bLength, bDescriptorType, wTotalLength, bNumInterfaces, bConfigurationValue, iConfiguration
263263
* bmAttributes, bMaxPower */
@@ -275,7 +275,7 @@ _Pragma("pack()")
275275

276276
#define D_IAD(_firstInterface, _count, _class, _subClass, _protocol) \
277277
{ 8, 11, _firstInterface, _count, _class, _subClass, _protocol, 0 }
278-
/* iadclasscode_r10.pdf, Table 9–Z. Standard Interface Association Descriptor
278+
/* iadclasscode_r10.pdf, Table 9\96Z. Standard Interface Association Descriptor
279279
* bLength, bDescriptorType, bFirstInterface, bInterfaceCount, bFunctionClass, bFunctionSubClass, bFunctionProtocol, iFunction */
280280

281281
// Functional Descriptor General Format

0 commit comments

Comments
 (0)