remove unused variable

This commit is contained in:
devsaurus 2018-12-02 21:13:04 +01:00
parent b0d6446327
commit f338d31f05
1 changed files with 8 additions and 9 deletions

View File

@ -174,16 +174,15 @@ static int uart_setup( lua_State* L )
static int uart_setmode(lua_State* L) static int uart_setmode(lua_State* L)
{ {
unsigned id, mode; unsigned id, mode;
uint32_t res;
id = luaL_checkinteger( L, 1 ); id = luaL_checkinteger( L, 1 );
MOD_CHECK_ID( uart, id ); MOD_CHECK_ID( uart, id );
mode = luaL_checkinteger( L, 2 ); mode = luaL_checkinteger( L, 2 );
platform_uart_setmode(id, mode); platform_uart_setmode(id, mode);
return 0; return 0;
} }
// Lua: write( id, string1, [string2], ..., [stringn] ) // Lua: write( id, string1, [string2], ..., [stringn] )