Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
0e71189c
Commit
0e71189c
authored
Aug 30, 2022
by
Joo Aun Saw
Committed by
Johny Mattsson
Aug 30, 2022
Browse files
uart: further clean up
parent
5e6cb4d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
components/modules/uart.c
View file @
0e71189c
...
...
@@ -144,12 +144,10 @@ static int uart_setup( lua_State* L )
databits
=
luaL_checkinteger
(
L
,
3
);
parity
=
luaL_checkinteger
(
L
,
4
);
stopbits
=
luaL_checkinteger
(
L
,
5
);
if
(
id
==
CONFIG_ESP_CONSOLE_UART_NUM
)
{
if
(
!
lua_isnoneornil
(
L
,
6
))
{
if
(
!
lua_isnoneornil
(
L
,
6
))
{
if
(
id
==
CONFIG_ESP_CONSOLE_UART_NUM
)
{
input_echo
=
luaL_checkinteger
(
L
,
6
)
>
0
;
}
}
else
{
if
(
!
lua_isnoneornil
(
L
,
6
))
{
}
else
{
luaL_checktable
(
L
,
6
);
lua_getfield
(
L
,
6
,
"tx"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment