From 01c865d3ebf01282da1f2f78185d0bbefdc110c6 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Thu, 20 Apr 2017 19:02:34 +1000 Subject: [PATCH] changed evout to filter stuff for debugging purposes --- modules/evout.lua | 8 +++++--- modules/util/loadeeprom.lua | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 modules/util/loadeeprom.lua diff --git a/modules/evout.lua b/modules/evout.lua index 441b009..225b3c0 100644 --- a/modules/evout.lua +++ b/modules/evout.lua @@ -1,7 +1,9 @@ s("evp",function() - local evs={l()} - if evs ~= nil then - ns(T.unpack(evs)) + while true do + if ev ~= nil and ev[1] ~= "display" and ev[1] ~= "key_down" and ev[1] ~= "key_up" and ev[1] ~= "screen_resized" and ev[1] ~= "modem_message" and ev[1] ~= "sendmsg" then +-- ns(T.unpack(evs)) + print(T.unpack(ev)) end C.yield() + end end) diff --git a/modules/util/loadeeprom.lua b/modules/util/loadeeprom.lua new file mode 100644 index 0000000..4663d2f --- /dev/null +++ b/modules/util/loadeeprom.lua @@ -0,0 +1 @@ +pcall(load(component.invoke(component.list("eeprom")(),"getData")))