fix construction of table

This commit is contained in:
devsaurus 2015-10-26 22:40:11 +01:00
parent d46bc5cc1f
commit 0ba0370b87
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ static int spi_generic_send_recv( lua_State *L, u8 recv )
lua_pop( L, 1 );
if (recv > 0) {
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
{