From 3f8b2ce16f4028030fcf18153b2adf5c9d3b02e5 Mon Sep 17 00:00:00 2001 From: Liam Fraser Date: Fri, 22 Jul 2022 10:35:01 +0100 Subject: [PATCH] Add usb device enumeration fix --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 252bf4e64..c64db044e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,10 @@ pico_generate_pio_header(picoprobe ${CMAKE_CURRENT_LIST_DIR}/src/probe.pio) target_include_directories(picoprobe PRIVATE src) +target_compile_definitions (picoprobe PRIVATE + PICO_RP2040_USB_DEVICE_ENUMERATION_FIX=1 +) + target_link_libraries(picoprobe PRIVATE pico_stdlib pico_unique_id tinyusb_device tinyusb_board hardware_pio) pico_add_extra_outputs(picoprobe)