Suggestion: add maximum power to USBDevice constructor

11 Jun 2014

Hey guys. I'm working on a battery-powered project using the USBDevice library, and the only way I can set the maximum power for a self-powered HID device is to inherit from USBHID and override configurationDesc() with my own implementation that's identical except for the bMaxPower field. Is there any way that field could be set in the constructor?