Commit 0ba0370b authored by devsaurus's avatar devsaurus
Browse files

fix construction of table

parent d46bc5cc
...@@ -110,7 +110,7 @@ static int spi_generic_send_recv( lua_State *L, u8 recv ) ...@@ -110,7 +110,7 @@ static int spi_generic_send_recv( lua_State *L, u8 recv )
lua_pop( L, 1 ); lua_pop( L, 1 );
if (recv > 0) { if (recv > 0) {
lua_pushinteger( L, platform_spi_send_recv( id, spi_databits[id], numdata ) ); lua_pushinteger( L, platform_spi_send_recv( id, spi_databits[id], numdata ) );
lua_rawseti( L, -1, i + 1 ); lua_rawseti( L, -2, i + 1 );
} }
else else
{ {
......
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