8000 esp8266: Fix UART stop bit constants. · adafruit/circuitpython@ab2c64c · GitHub
[go: up one dir, main page]

Skip to content

Commit ab2c64c

Browse files
elfmimidpgeorge
authored andcommitted
esp8266: Fix UART stop bit constants.
As per the "ESP8266 Technical Reference".
1 parent 1c6b442 commit ab2c64c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

esp8266/uart.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ typedef enum {
1414
} UartBitsNum4Char;
1515

1616
typedef enum {
17-
UART_ONE_STOP_BIT = 0,
18-
UART_ONE_HALF_STOP_BIT = BIT2,
19-
UART_TWO_STOP_BIT = BIT2
17+
UART_ONE_STOP_BIT = 0x1,
18+
UART_ONE_HALF_STOP_BIT = 0x2,
19+
UART_TWO_STOP_BIT = 0x3
2020
} UartStopBitsNum;
2121

2222
typedef enum {

0 commit comments

Comments
 (0)
0