]> git.donarmstrong.com Git - kiibohd-controller.git/blobdiff - Bootloader/dfu.desc.c
Setting bootloader max power to 100 mA
[kiibohd-controller.git] / Bootloader / dfu.desc.c
index 5d7d69cdf65858321cab2e17f2d435f8274c4aed..a0ce1f856b098eabdd20be9e0b60c242c30bc270 100644 (file)
@@ -1,5 +1,5 @@
 // Originally Generated from MCHCK Toolkit
-/* Copyright (c) Jacob Alexander 2014 <haata@kiibohd.com>
+/* Copyright (c) Jacob Alexander 2014-2016 <haata@kiibohd.com>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -38,7 +38,7 @@ static const struct usb_config_1 usb_config_1 = {
                .bConfigurationValue = 1,
                .iConfiguration = 0,
                .one = 1,
-               .bMaxPower = 100
+               .bMaxPower = 50
        },
        .usb_function_0 = {
                .iface = {
@@ -50,7 +50,7 @@ static const struct usb_config_1 usb_config_1 = {
                        .bInterfaceClass = USB_DEV_CLASS_APP,
                        .bInterfaceSubClass = USB_DEV_SUBCLASS_APP_DFU,
                        .bInterfaceProtocol = USB_DEV_PROTO_DFU_DFU,
-                       .iInterface = 0
+                       .iInterface = 4
                },
 
        .dfu = {
@@ -101,6 +101,7 @@ static const struct usb_desc_string_t * const dfu_device_str_desc[] = {
        USB_DESC_STRING(STR_MANUFACTURER),
        USB_DESC_STRING(STR_PRODUCT),
        USB_DESC_STRING(STR_SERIAL),
+       USB_DESC_STRING(STR_ALTNAME),
        NULL
 };