Skip to content

Commit

Permalink
fixup! cpu/esp32: add internal _uart_set_mode function
Browse files Browse the repository at this point in the history
  • Loading branch information
gschorcht committed Mar 28, 2019
1 parent 43c144f commit cc6bd45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpu/esp32/periph/uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ static int _uart_set_mode(uart_t uart, uart_data_bits_t data_bits,
/* workaround for hardware bug when stop bits are set to 2-bit mode. */
switch (stop_bits) {
case UART_STOP_BITS_1: _uarts[uart].regs->conf0.stop_bit_num = 1;
_uarts[uart].regs->rs485_conf.dl1_en = 1;
_uarts[uart].regs->rs485_conf.dl1_en = 0;
break;
case UART_STOP_BITS_2: _uarts[uart].regs->conf0.stop_bit_num = 1;
_uarts[uart].regs->rs485_conf.dl1_en = 1;
Expand Down

0 comments on commit cc6bd45

Please sign in to comment.