Commit 0e71189c authored by Joo Aun Saw's avatar Joo Aun Saw Committed by Johny Mattsson
Browse files

uart: further clean up

parent 5e6cb4d1
......@@ -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");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment