Skip to content

Commit d522523

Browse files
committed
USB Device Descriptor Max Power is not configurable #504
Replacing hardcoded value with define macro
1 parent 76a551b commit d522523

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/arduino/Adafruit_USBD_Device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ void Adafruit_USBD_Device::clearConfiguration(void) {
186186
uint8_t const dev_cfg[sizeof(tusb_desc_configuration_t)] = {
187187
TUD_CONFIG_DESCRIPTOR(1, 0, 0, sizeof(tusb_desc_configuration_t),
188188
TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP | TU_BIT(7),
189-
100),
189+
USB_CONFIG_POWER),
190190
};
191191

192192
memcpy(_desc_cfg_buffer, dev_cfg, sizeof(tusb_desc_configuration_t));

0 commit comments

Comments
 (0)