Skip to content

Commit 6591da9

Browse files
authored
Fix PlatformIO build (#395)
Defines USBD_MAX_POWER_MA as a static 250mA, which is correct for all the boards supported in platform-raspberrypi (aka, RaspberryPi Pico and Nano RP2040 Connect)
1 parent c80c08d commit 6591da9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/platformio-build.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ def configure_usb_flags(cpp_defines):
142142
("USB_PID", usb_pid),
143143
("USB_MANUFACTURER", '\\"%s\\"' % usb_manufacturer),
144144
("USB_PRODUCT", '\\"%s\\"' % usb_product),
145-
("SERIALUSB_PID", usb_pid)
145+
("SERIALUSB_PID", usb_pid),
146+
("USBD_MAX_POWER_MA", 250)
146147
])
147148

148149
# use vidtouse and pidtouse

0 commit comments

Comments
 (0)