Skip to content

Commit c9388a6

Browse files
committed
feat: adjust internal baurate
1 parent b4a6638 commit c9388a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cores/esp32/esp32-hal-uart.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,7 @@ void uartSetBaudRate(uart_t* uart, uint32_t baud_rate)
777777
if(uart_get_sclk_freq(UART_SCLK_DEFAULT, &sclk_freq) == ESP_OK){
778778
uart_ll_set_baudrate(UART_LL_GET_HW(uart->num), baud_rate, sclk_freq);
779779
}
780+
uart->_baudrate = baud_rate;
780781
UART_MUTEX_UNLOCK();
781782
}
782783

0 commit comments

Comments
 (0)