added some ocemu-related debug modules
This commit is contained in:
parent
c1e9e31cf0
commit
36442751b9
7
modules/debug/ocemu-display.lua
Normal file
7
modules/debug/ocemu-display.lua
Normal file
@ -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)
|
9
modules/debug/ocemu-heartbeat.lua
Normal file
9
modules/debug/ocemu-heartbeat.lua
Normal file
@ -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)
|
Loading…
Reference in New Issue
Block a user