From 27a685b93181b66f56a3aa19aa666a69af838c5b Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Tue, 5 Nov 2024 09:42:27 +0100 Subject: [PATCH] Fix usb initialization for emulation. Signed-off-by: Pol Henarejos --- src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index f6cfd33..4084147 100644 --- a/src/main.c +++ b/src/main.c @@ -305,11 +305,12 @@ int main(void) { init_rtc(); #ifndef ENABLE_EMULATION - phy_init(); +#endif usb_init(); +#ifndef ENABLE_EMULATION #ifdef ESP_PLATFORM gpio_pad_select_gpio(BOOT_PIN); gpio_set_direction(BOOT_PIN, GPIO_MODE_INPUT);