Skip to content

Commit 673eff2

Browse files
authored
fix(uart): type missmatch may cause error
1 parent 4d7afe8 commit 673eff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/esp32-hal-uart.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@ bool uartSetBaudRate(uart_t *uart, uint32_t baud_rate) {
997997
}
998998
bool retCode = true;
999999
soc_module_clk_t newClkSrc = UART_SCLK_DEFAULT;
1000-
uint8_t previousClkSrc = uart->_uart_clock_source;
1000+
int8_t previousClkSrc = uart->_uart_clock_source;
10011001
#if SOC_UART_LP_NUM >= 1
10021002
if (uart->num >= SOC_UART_HP_NUM) { // it is a LP UART NUM
10031003
#if !(CONFIG_ARDUINO_SERIAL_FORCE_IDF_DEFAULT_CLOCK_SOURCE)

0 commit comments

Comments
 (0)