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

10 lines
196 B
Lua
Raw Normal View History

2017-06-13 09:40:56 +10:00
_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)