Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
74e5ebdf
Commit
74e5ebdf
authored
Jan 14, 2016
by
Terry Ellison
Browse files
Merge pull request #935 from pjsg/fix-bootreason
Add the exccause parameter into the bootreason block
parents
2d82e622
dc5cc6d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/modules/node.c
View file @
74e5ebdf
...
@@ -477,12 +477,13 @@ static int node_bootreason (lua_State *L)
...
@@ -477,12 +477,13 @@ static int node_bootreason (lua_State *L)
lua_pushnumber
(
L
,
ri
->
reason
);
lua_pushnumber
(
L
,
ri
->
reason
);
if
(
ri
->
reason
==
REASON_EXCEPTION_RST
)
if
(
ri
->
reason
==
REASON_EXCEPTION_RST
)
{
{
lua_pushnumber
(
L
,
ri
->
exccause
);
lua_pushnumber
(
L
,
ri
->
epc1
);
lua_pushnumber
(
L
,
ri
->
epc1
);
lua_pushnumber
(
L
,
ri
->
epc2
);
lua_pushnumber
(
L
,
ri
->
epc2
);
lua_pushnumber
(
L
,
ri
->
epc3
);
lua_pushnumber
(
L
,
ri
->
epc3
);
lua_pushnumber
(
L
,
ri
->
excvaddr
);
lua_pushnumber
(
L
,
ri
->
excvaddr
);
lua_pushnumber
(
L
,
ri
->
depc
);
lua_pushnumber
(
L
,
ri
->
depc
);
return
7
;
return
8
;
}
}
else
else
return
2
;
return
2
;
...
...
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