Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
0ba0370b
Commit
0ba0370b
authored
Oct 26, 2015
by
devsaurus
Browse files
fix construction of table
parent
d46bc5cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/modules/spi.c
View file @
0ba0370b
...
@@ -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
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment