From c09d0c1ab0579d0d93c841ddb4bf9f0cea3c437e Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Mon, 13 Jan 2020 23:01:07 +0000 Subject: [PATCH] init: expose stop() even on panic --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 3566ecf..386ea62 100644 --- a/init.lua +++ b/init.lua @@ -77,8 +77,9 @@ local function waitFLASH() gpio.trig(3,"low",function(_) print("Aborting..."); stop() end) end local function bootPANIC() - print("Panic! Lingering for a minute with telnet console up; 'got:stop()' to persist...") + print("Panic! Lingering for a minute with telnet console up; 'stop()' to persist...") gotmr:alarm(60000,tmr.ALARM_SINGLE,node.restart) + function stop() gotmr:stop() end goab() end local bct = { -- 2.50.1