OC-MultICE/modules/debug/ocemu-heartbeat.lua

10 lines
196 B
Lua

_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)