From 217e1a8e7560f885dfcf8ee32c625f16994f3fc6 Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Mon, 30 Jan 2017 15:08:09 -0500 Subject: [PATCH] init: no real need for that metatable --- init.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 0f34362..9270fb5 100644 --- a/init.lua +++ b/init.lua @@ -32,7 +32,5 @@ local function bootPANIC() goab() end local bct = { [0] = waitFLASH, [1] = bootPANIC, [2] = bootPANIC, [3] = bootPANIC, [4] = waitFLASH, [5] = goi2, [6] = waitFLASH } -local mt = {__index = function() return goi2 end} -setmetatable(bct,mt) local _, bc = node.bootreason() -bct[bc]() +if bct[bc] then bct[bc]() else waitFLASH() end -- 2.50.1