Skip to content

Commit 57fb057

Browse files
authored
fix(uart): changes log message to a more clear one
1 parent 5748fe0 commit 57fb057

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cores/esp32/esp32-hal-uart.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,7 @@ int uart_send_msg_with_break(uint8_t uartNum, uint8_t *msg, size_t msgSize) {
13891389
// returns the maximum valid uart RX Timeout based on the UART Source Clock and Baudrate
13901390
uint16_t uart_get_max_rx_timeout(uint8_t uartNum) {
13911391
if (uartNum >= SOC_UART_NUM) {
1392-
log_e("UART%d does not exist. This device has %d UARTs, from 0 to %d.", uartNum, SOC_UART_NUM, SOC_UART_NUM - 1);
1392+
log_e("UART%d is invalid. This device has %d UARTs, from 0 to %d.", uartNum, SOC_UART_NUM, SOC_UART_NUM - 1);
13931393
return (uint16_t) -1;
13941394
}
13951395
uint16_t tout_max_thresh = uart_ll_max_tout_thrd(UART_LL_GET_HW(uartNum));

0 commit comments

Comments
 (0)