From 2bcfad8f919cc54b2e78c11038a7b0cd1cf9dddc Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Sat, 25 Jan 2020 18:57:06 +0000 Subject: [PATCH] lamp-touch: fix typo in LFS scan b239c3d0768c00be44f423609f705dcc96421a5b tried to walk the list of modules in LFS (as well as those in SPIFFS), but used the integer key, not string value, of the table of module names. This, understandably, didn't work out so well. --- lamp-touch.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lamp-touch.lua b/lamp-touch.lua index 951ce95..5ff2e02 100644 --- a/lamp-touch.lua +++ b/lamp-touch.lua @@ -28,7 +28,7 @@ for k,v in pairs(file.list()) do end local ut, fa, ma, sz, t = node.flashindex() if t then for k,v in ipairs(t) do - local ix, _, meth = k:find("^draw%-(%w+)$") + local ix, _, meth = v:find("^draw%-(%w+)$") if ix then touchfns[#touchfns+1] = meth end end end table.sort(touchfns) -- 2.50.1