Skip to content

Commit 85d92e9

Browse files
committed
fix(uart): extended lod messages
1 parent 5f25e44 commit 85d92e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cores/esp32/esp32-hal-uart.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ static bool _uartDetachBus_RX(void *busptr) {
292292
return true;
293293
}
294294
if (bus->_txPin < 0) { // both rx and tx pins are detached, terminate the uart driver
295+
log_d("_uartDetachBus_RX: both RX and TX pins detached for UART%d, terminating driver", bus->num);
295296
uartEnd(bus->num);
296297
return true;
297298
}
@@ -310,6 +311,7 @@ static bool _uartDetachBus_TX(void *busptr) {
310311
return true;
311312
}
312313
if (bus->_rxPin < 0) { // both rx and tx pins are detached, terminate the uart driver
314+
log_d("_uartDetachBus_TX: both RX and TX pins detached for UART%d, terminating driver", bus->num);
313315
uartEnd(bus->num);
314316
return true;
315317
}

0 commit comments

Comments
 (0)