Improve CDC Logging support

This commit is contained in:
me-no-dev
2020-07-22 23:59:22 +03:00
parent d777949bf5
commit 681b1214cf
6 changed files with 3 additions and 2 deletions

View File

@ -315,6 +315,7 @@ uint32_t USBCDC::baudRate()
void USBCDC::setDebugOutput(bool en)
{
if(en) {
uartSetDebug(NULL);
ets_install_putc1((void (*)(char)) &cdc0_write_char);
} else {
ets_install_putc1(NULL);