Skip to content

Commit f4c21dd

Browse files
authored
feat(uart_cdc): when CDC is logging, UART is silent
1 parent aae4d76 commit f4c21dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cores/esp32/USBCDC.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ void USBCDC::setDebugOutput(bool en) {
455455
} else {
456456
ets_install_putc2(NULL);
457457
}
458+
ets_install_putc1(NULL); // closes UART log output
458459
}
459460

460461
USBCDC::operator bool() const {

0 commit comments

Comments
 (0)