From edf5ecffc85b075cf07c0d20caccb90f48d7c307 Mon Sep 17 00:00:00 2001 From: Rodrigo Garcia Date: Wed, 20 Dec 2023 11:25:12 -0300 Subject: [PATCH] Fixes ESP32-S2 CDC Debug Logging (#7284) --- 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 da0d5587af6..c99659dadac 100644 --- a/cores/esp32/USBCDC.cpp +++ b/cores/esp32/USBCDC.cpp @@ -79,7 +79,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); } }