Skip to content

Commit e62987f

Browse files
dicristinajosuah
authored andcommitted
Fix USB enumeration problem on macOS.
1 parent b72a360 commit e62987f

File tree

1 file changed

+4
-0
lines changed
  • Firmware/pico-ice-default

1 file changed

+4
-0
lines changed

Firmware/pico-ice-default/main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ int main(void) {
125125
// Prevent the LEDs from glowing slightly
126126
ice_led_init();
127127

128+
// Ensure that enumeration completes before main loop.
129+
while (!tud_ready())
130+
tud_task();
131+
128132
while (true) {
129133
tud_task();
130134

0 commit comments

Comments
 (0)