Skip to content

Commit 1549c65

Browse files
committed
pbio/platform/prime_hub: Reset USB enable flag.
This should not be enabled in public builds since USB support is not yet ready, but it was accidentally enabled (and committed) while debugging in 4002d26.
1 parent afd1170 commit 1549c65

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/pbio/platform/prime_hub/pbdrvconfig.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119

120120
#define PBDRV_CONFIG_USB (1)
121121
#define PBDRV_CONFIG_USB_MAX_PACKET_SIZE (64)
122-
#define PBDRV_CONFIG_USB_NUM_BUFFERED_PACKETS (20)
122+
#define PBDRV_CONFIG_USB_NUM_BUFFERED_PACKETS (2)
123123
#define PBDRV_CONFIG_USB_VID LEGO_USB_VID
124124
#define PBDRV_CONFIG_USB_PID 0xFFFF
125125
#define PBDRV_CONFIG_USB_PID_0 LEGO_USB_PID_SPIKE_PRIME
@@ -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 (0)
131+
#define PBDRV_CONFIG_USB_CHARGE_ONLY (1)
132132

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

0 commit comments

Comments
 (0)