Skip to content

Commit aaeb167

Browse files
committed
Fix compilation 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. Signed-off-by: Peter M <petermm@gmail.com>
1 parent dc8a91f commit aaeb167

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)