From a0e55ebfaed615a7627c63282d57fdfa3b7e106c Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Wed, 19 Jun 2024 22:30:07 +0200 Subject: [PATCH] Fix tusb initialization. Signed-off-by: Pol Henarejos --- src/main.c | 2 ++ src/usb/usb.c | 8 -------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/main.c b/src/main.c index 990d55d..ec3554e 100644 --- a/src/main.c +++ b/src/main.c @@ -418,6 +418,8 @@ int main(void) { #ifdef ESP_PLATFORM tusb_cfg.string_descriptor[3] = pico_serial_str; tinyusb_driver_install(&tusb_cfg); +#else + tusb_init(); #endif #endif diff --git a/src/usb/usb.c b/src/usb/usb.c index c11db10..ab1a0af 100644 --- a/src/usb/usb.c +++ b/src/usb/usb.c @@ -30,14 +30,6 @@ #include "tusb.h" #endif -#ifndef ENABLE_EMULATION -#include "tusb.h" -#endif - -#ifndef ENABLE_EMULATION -#include "tusb.h" -#endif - // For memcpy #include #include