浏览代码

Add the exccause parameter into the bootreason block

philip 8 年之前
父节点
当前提交
dc5cc6d9f4
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/modules/node.c

+ 2 - 1
app/modules/node.c

@@ -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;