]> git.donarmstrong.com Git - kiibohd-controller.git/commitdiff
Setting bootloader max power to 100 mA
authorJacob Alexander <haata@kiibohd.com>
Sun, 21 Feb 2016 22:19:52 +0000 (14:19 -0800)
committerJacob Alexander <haata@kiibohd.com>
Sun, 21 Feb 2016 22:19:52 +0000 (14:19 -0800)
- This amount of current is guaranteed by the USB spec before enumeration
- Generally the bootloader doesn't need nearly this much, but to be safe

Bootloader/dfu.desc.c

index dc11fefe87b5a5484d18c7921cfc5ce2bcb476e5..a0ce1f856b098eabdd20be9e0b60c242c30bc270 100644 (file)
@@ -1,5 +1,5 @@
 // Originally Generated from MCHCK Toolkit
 // Originally Generated from MCHCK Toolkit
-/* Copyright (c) Jacob Alexander 2014-2015 <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
  *
  * 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,
                .bConfigurationValue = 1,
                .iConfiguration = 0,
                .one = 1,
-               .bMaxPower = 100
+               .bMaxPower = 50
        },
        .usb_function_0 = {
                .iface = {
        },
        .usb_function_0 = {
                .iface = {