diff --git a/hardware/keyboardio/cores/keyboardio/USBCore.cpp b/hardware/keyboardio/cores/keyboardio/USBCore.cpp index 113926e3..71ec13c6 100644 --- a/hardware/keyboardio/cores/keyboardio/USBCore.cpp +++ b/hardware/keyboardio/cores/keyboardio/USBCore.cpp @@ -45,6 +45,7 @@ extern const u16 STRING_IPRODUCT[] PROGMEM; extern const u16 STRING_IMANUFACTURER[] PROGMEM; extern const DeviceDescriptor USB_DeviceDescriptor PROGMEM; extern const DeviceDescriptor USB_DeviceDescriptorA PROGMEM; +int usbMaxPower = 500; const u16 STRING_LANGUAGE[2] = { (3<<8) | (2+2), diff --git a/hardware/keyboardio/cores/keyboardio/USBCore.h b/hardware/keyboardio/cores/keyboardio/USBCore.h index 4413537a..fe38a532 100644 --- a/hardware/keyboardio/cores/keyboardio/USBCore.h +++ b/hardware/keyboardio/cores/keyboardio/USBCore.h @@ -291,7 +291,7 @@ typedef struct { 18, 1, 0x200, _class,_subClass,_proto,_packetSize0,_vid,_pid,_version,_im,_ip,_is,_configs } #define D_CONFIG(_totalLength,_interfaces) \ - { 9, 2, _totalLength,_interfaces, 1, 0, USB_CONFIG_BUS_POWERED | USB_CONFIG_REMOTE_WAKEUP, USB_CONFIG_POWER_MA(500) } + { 9, 2, _totalLength,_interfaces, 1, 0, USB_CONFIG_BUS_POWERED | USB_CONFIG_REMOTE_WAKEUP, USB_CONFIG_POWER_MA(usbMaxPower) } #define D_INTERFACE(_n,_numEndpoints,_class,_subClass,_protocol) \ { 9, 4, _n, 0, _numEndpoints, _class,_subClass, _protocol, 0 }