From 7232123ba74a8b021434d1854d135d8f276c98bf Mon Sep 17 00:00:00 2001 From: Rodrigo Garcia Date: Wed, 21 Sep 2022 07:18:42 -0300 Subject: [PATCH] Fixes ESP32-S2 CDC Debug Logging --- cores/esp32/USBCDC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp32/USBCDC.cpp b/cores/esp32/USBCDC.cpp index ccf5180d7c7..5d50001115d 100644 --- a/cores/esp32/USBCDC.cpp +++ b/cores/esp32/USBCDC.cpp @@ -74,7 +74,7 @@ void tud_cdc_tx_complete_cb(uint8_t itf){ static void ARDUINO_ISR_ATTR cdc0_write_char(char c){ if(devices[0] != NULL){ - devices[0]->write(c); + tud_cdc_n_write_char(0, c); } }