From dc5cc6d9f46063eb8a297b9f3fbdbe0aa47a7bcb Mon Sep 17 00:00:00 2001 From: philip Date: Thu, 14 Jan 2016 08:16:26 -0500 Subject: [PATCH] Add the exccause parameter into the bootreason block --- app/modules/node.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/modules/node.c b/app/modules/node.c index 967e85cf..3fdfd72c 100644 --- a/app/modules/node.c +++ b/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;