From cc6bd458175034fb505eb6bebf552776a5c8e682 Mon Sep 17 00:00:00 2001 From: Schorcht Date: Thu, 28 Mar 2019 14:44:56 +0100 Subject: [PATCH] fixup! cpu/esp32: add internal _uart_set_mode function --- cpu/esp32/periph/uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/esp32/periph/uart.c b/cpu/esp32/periph/uart.c index 74ae3fec63b0f..366dc5d6f4a34 100644 --- a/cpu/esp32/periph/uart.c +++ b/cpu/esp32/periph/uart.c @@ -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;