Skip to content

Commit 5b46139

Browse files
committed
Merge pull request #1338 from petermm/fix-usb-serial
ESP32-S2: fix compilation with USE_USB_SERIAL Compiling with USE_USB_SERIAL for usb console on s2, would fail as init_usb_serial() is defined after it's called. Safe for 0.6.5 inclusion. These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents fac89c1 + aaeb167 commit 5b46139

File tree

1 file changed

+1
-0
lines changed
  • src/platforms/esp32/main

1 file changed

+1
-0
lines changed

src/platforms/esp32/main/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
// idf.py add-dependency esp_tinyusb
4242
// and enable CDC in menu config
4343
#ifdef USE_USB_SERIAL
44+
void init_usb_serial(void);
4445
#include "tinyusb.h"
4546
#include "tusb_cdc_acm.h"
4647
#include "tusb_console.h"

0 commit comments

Comments
 (0)