Merge pull request #935 from pjsg/fix-bootreason

Add the exccause parameter into the bootreason block
This commit is contained in:
Terry Ellison 2016-01-14 17:11:37 +00:00
commit 74e5ebdf6d
1 changed files with 2 additions and 1 deletions

View File

@ -477,12 +477,13 @@ static int node_bootreason (lua_State *L)
lua_pushnumber (L, ri->reason);
if (ri->reason == REASON_EXCEPTION_RST)
{
lua_pushnumber (L, ri->exccause);
lua_pushnumber (L, ri->epc1);
lua_pushnumber (L, ri->epc2);
lua_pushnumber (L, ri->epc3);
lua_pushnumber (L, ri->excvaddr);
lua_pushnumber (L, ri->depc);
return 7;
return 8;
}
else
return 2;