diff --git a/modules/debug/ocemu-display.lua b/modules/debug/ocemu-display.lua new file mode 100644 index 0000000..ccc75f6 --- /dev/null +++ b/modules/debug/ocemu-display.lua @@ -0,0 +1,7 @@ +s("ocemu display server",function() + while true do + if ev[1] == "display" then + component.invoke(component.list("ocemu")(),"log",ev[2] or "") + end + end +end) diff --git a/modules/debug/ocemu-heartbeat.lua b/modules/debug/ocemu-heartbeat.lua new file mode 100644 index 0000000..1753748 --- /dev/null +++ b/modules/debug/ocemu-heartbeat.lua @@ -0,0 +1,9 @@ +_G.DEBUG=true +s("heartbeat",function() + while true do + if _G.DEBUG then + component.invoke(component.list("ocemu")(),"log","heartbeat:"..tostring(computer.uptime())) + end + C.yield() + end +end)