From 21111b1f27aece110a6a2ff3761b46f0293d47ba Mon Sep 17 00:00:00 2001 From: Terje Io Date: Sat, 30 Dec 2023 21:10:02 +0100 Subject: [PATCH] fixed copy/paste mistake and stop bit setting regression --- main/uart_serial.c | 2 +- platformio.cnc3040.ini | 2 +- platformio.tpl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main/uart_serial.c b/main/uart_serial.c index 60b1885..9dc1182 100644 --- a/main/uart_serial.c +++ b/main/uart_serial.c @@ -253,7 +253,7 @@ static void uartConfig (uart_t *uart, uint32_t baud_rate) UART_MUTEX_LOCK(uart); uart_ll_set_data_bit_num(uart->dev, UART_DATA_8_BITS); - uart_ll_set_stop_bits(uart->dev, UART_STOP_BITS_2); + uart_ll_set_stop_bits(uart->dev, UART_STOP_BITS_1); uart_ll_set_parity(uart->dev, UART_PARITY_DISABLE); // Note: UART0 pin mappings are set at boot, no need to set here unless override is required diff --git a/platformio.cnc3040.ini b/platformio.cnc3040.ini index a2364fe..129ebae 100644 --- a/platformio.cnc3040.ini +++ b/platformio.cnc3040.ini @@ -16,7 +16,7 @@ include_dir = main build_flags = [env:esp32doit-devkit-v1] -platform = espressif32 @ @ ~4.0.0 +platform = espressif32 @ ~4.0.0 framework = espidf board = esp32doit-devkit-v1 board_build.partitions = partitions.csv diff --git a/platformio.tpl b/platformio.tpl index 6bdcace..a362c0d 100644 --- a/platformio.tpl +++ b/platformio.tpl @@ -10,7 +10,7 @@ include_dir = main build_flags = [env:%env_name%] -platform = espressif32 @ @ ~4.0.0 +platform = espressif32 @ ~4.0.0 framework = espidf board =%board% board_build.partitions = partitions.csv