Skip to content

Commit

Permalink
Fix unitialized UART config that caused inaccurate high baud rates
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchBradley committed Dec 11, 2023
1 parent 484aada commit 3e94650
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions FluidNC/src/Uart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ static void uart_driver_n_install(void* arg) {
void Uart::begin(unsigned long baud, UartData dataBits, UartStop stopBits, UartParity parity) {
// uart_driver_delete(_uart_num);
uart_config_t conf;
conf.source_clk = UART_SCLK_APB;
conf.baud_rate = baud;
conf.data_bits = uart_word_length_t(_dataBits);
conf.parity = uart_parity_t(_parity);
Expand Down

0 comments on commit 3e94650

Please sign in to comment.