From 638487696c0458e6ae1adfc968ec2b240f5ba7ec Mon Sep 17 00:00:00 2001 From: Rodrigo Garcia Date: Tue, 12 Dec 2023 07:02:14 -0300 Subject: [PATCH] Fix Lolin S2 USB CDC setup (#1251) This commit fixes an issue with this board pointed out in ESP32 Arduino Github. https://github.com/espressif/arduino-esp32/issues/8977#issuecomment-1850888549 --- boards/lolin_s2_mini.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boards/lolin_s2_mini.json b/boards/lolin_s2_mini.json index 59832f8..1282c1f 100644 --- a/boards/lolin_s2_mini.json +++ b/boards/lolin_s2_mini.json @@ -7,7 +7,8 @@ "extra_flags": [ "-DARDUINO_LOLIN_S2_MINI", "-DBOARD_HAS_PSRAM", - "-DARDUINO_USB_CDC_ON_BOOT=1" + "-DARDUINO_USB_CDC_ON_BOOT=1", + "-DARDUINO_USB_MODE=0" ], "f_cpu": "240000000L", "f_flash": "80000000L",