Skip to content

Commit c9a0009

Browse files
committed
Merge branch 'MIDIdescriptorsFix' of https://github.com/arduino/ArduinoCore-samd
2 parents 5f9b54b + 17734c5 commit c9a0009

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
@@ -252,13 +252,13 @@ typedef struct
252252
_Pragma("pack()")
253253

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

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

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

282282
// Functional Descriptor General Format

0 commit comments

Comments
 (0)