From ab2c64cc7656c8e6da9389e51f9b88270dd5a998 Mon Sep 17 00:00:00 2001 From: Ein Terakawa Date: Wed, 16 Aug 2017 10:23:27 +0000 Subject: [PATCH] esp8266: Fix UART stop bit constants. As per the "ESP8266 Technical Reference". --- esp8266/uart.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esp8266/uart.h b/esp8266/uart.h index ebcd8b051a..684689a0ec 100644 --- a/esp8266/uart.h +++ b/esp8266/uart.h @@ -14,9 +14,9 @@ typedef enum { } UartBitsNum4Char; typedef enum { - UART_ONE_STOP_BIT = 0, - UART_ONE_HALF_STOP_BIT = BIT2, - UART_TWO_STOP_BIT = BIT2 + UART_ONE_STOP_BIT = 0x1, + UART_ONE_HALF_STOP_BIT = 0x2, + UART_TWO_STOP_BIT = 0x3 } UartStopBitsNum; typedef enum {