]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Merge pull request #953 from priyadi/ibm_terminal
authorJack Humbert <jack.humb@gmail.com>
Thu, 15 Dec 2016 05:02:45 +0000 (00:02 -0500)
committerGitHub <noreply@github.com>
Thu, 15 Dec 2016 05:02:45 +0000 (00:02 -0500)
IBM Terminal M-122 converter support

keyboards/ergodox/ez/config.h
tmk_core/protocol/lufa/descriptor.c

index c2750a321f0ff8b89258266004a6c39a251c6e12..a3dc5bf152ad1a09ca2186ea3a013346119e7c29 100644 (file)
@@ -56,6 +56,8 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 /* Set 0 if debouncing isn't needed */
 #define DEBOUNCE    5
 
+#define USB_MAX_POWER_CONSUMPTION 50
+
 /*
  * Feature disable options
  *  These options are also useful to firmware size reduction.
index bf47787d296b3bc6817dbcb3aa1da911068e36d5..14d99b50bd77e1e5bd164c8f70a88f0bb3c849bd 100644 (file)
@@ -40,6 +40,9 @@
 #include "report.h"
 #include "descriptor.h"
 
+#ifndef USB_MAX_POWER_CONSUMPTION
+#define USB_MAX_POWER_CONSUMPTION 500
+#endif
 
 /*******************************************************************************
  * HID Report Descriptors
@@ -294,7 +297,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
 
             .ConfigAttributes       = (USB_CONFIG_ATTR_RESERVED | USB_CONFIG_ATTR_REMOTEWAKEUP),
 
-            .MaxPowerConsumption    = USB_CONFIG_POWER_MA(500)
+            .MaxPowerConsumption    = USB_CONFIG_POWER_MA(USB_MAX_POWER_CONSUMPTION)
         },
 
     /*