Skip to content

Commit

Permalink
remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
devsaurus committed Dec 2, 2018
1 parent b0d6446 commit f338d31
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions components/base_nodemcu/uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,16 +174,15 @@ static int uart_setup( lua_State* L )

static int uart_setmode(lua_State* L)
{
unsigned id, mode;
uint32_t res;
unsigned id, mode;

id = luaL_checkinteger( L, 1 );
MOD_CHECK_ID( uart, id );
mode = luaL_checkinteger( L, 2 );
platform_uart_setmode(id, mode);
return 0;
id = luaL_checkinteger( L, 1 );
MOD_CHECK_ID( uart, id );
mode = luaL_checkinteger( L, 2 );

platform_uart_setmode(id, mode);

return 0;
}

// Lua: write( id, string1, [string2], ..., [stringn] )
Expand Down

0 comments on commit f338d31

Please sign in to comment.