Skip to content

Commit 00edd3b

Browse files
committed
pbio/platform/prime_hub: Enable USB.
This was disabled because the web editor did not yet include USB support, but this is good enough for regular use in beta testing now.
1 parent a291cb8 commit 00edd3b

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
cannot be used as a standalone device since it cannot ne updated.
1010
- Added `DriveBase.hold()` method ([support#2621]).
1111
- Added `Motor Button Control` and `Motor IR Control` on EV3 apps tab.
12+
- Enabled USB coding support for SPIKE Prime, SPIKE Essential, and MINDSTORMS
13+
Robot Inventor.
1214

1315
### Changed
1416
- The EV3 Color Sensor now returns `Color.NONE` instead of `None` when no color

lib/pbio/platform/essential_hub/pbdrvconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
#define PBDRV_CONFIG_USB_MFG_STR LEGO_USB_MFG_STR
109109
#define PBDRV_CONFIG_USB_PROD_STR LEGO_USB_PROD_STR_TECHNIC_SMALL_HUB " + Pybricks"
110110
#define PBDRV_CONFIG_USB_STM32F4 (1)
111-
#define PBDRV_CONFIG_USB_CHARGE_ONLY (1)
111+
#define PBDRV_CONFIG_USB_CHARGE_ONLY (0)
112112

113113
#define PBDRV_CONFIG_STACK (1)
114114
#define PBDRV_CONFIG_STACK_EMBEDDED (1)

lib/pbio/platform/prime_hub/pbdrvconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
#define PBDRV_CONFIG_USB_PROD_STR LEGO_USB_PROD_STR_TECHNIC_LARGE_HUB " + Pybricks"
129129
#define PBDRV_CONFIG_USB_STM32F4 (1)
130130
#define PBDRV_CONFIG_USB_STM32F4_HUB_VARIANT_ADDR 0x08007d80
131-
#define PBDRV_CONFIG_USB_CHARGE_ONLY (1)
131+
#define PBDRV_CONFIG_USB_CHARGE_ONLY (0)
132132

133133
#define PBDRV_CONFIG_STACK (1)
134134
#define PBDRV_CONFIG_STACK_EMBEDDED (1)

0 commit comments

Comments
 (0)