Skip to content

Commit 2c21a28

Browse files
committed
pbio/platform: enable USB on SPIKE hubs
Now that USB is mostly working, we can enable it by default on SPIKE Essential and Prime hubs.
1 parent bb18fdf commit 2c21a28

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/pbio/platform/essential_hub/pbdrvconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
#define PBDRV_CONFIG_USB_MFG_STR LEGO_USB_MFG_STR
104104
#define PBDRV_CONFIG_USB_PROD_STR LEGO_USB_PROD_STR_TECHNIC_SMALL_HUB " + Pybricks"
105105
#define PBDRV_CONFIG_USB_STM32F4 (1)
106-
#define PBDRV_CONFIG_USB_CHARGE_ONLY (1)
106+
#define PBDRV_CONFIG_USB_CHARGE_ONLY (0)
107107

108108
#define PBDRV_CONFIG_STACK (1)
109109
#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
@@ -120,7 +120,7 @@
120120
#define PBDRV_CONFIG_USB_PROD_STR LEGO_USB_PROD_STR_TECHNIC_LARGE_HUB " + Pybricks"
121121
#define PBDRV_CONFIG_USB_STM32F4 (1)
122122
#define PBDRV_CONFIG_USB_STM32F4_HUB_VARIANT_ADDR 0x08007d80
123-
#define PBDRV_CONFIG_USB_CHARGE_ONLY (1)
123+
#define PBDRV_CONFIG_USB_CHARGE_ONLY (0)
124124

125125
#define PBDRV_CONFIG_STACK (1)
126126
#define PBDRV_CONFIG_STACK_EMBEDDED (1)

0 commit comments

Comments
 (0)