mirror of
https://github.com/kepler155c/opus
synced 2025-01-24 06:06:54 +00:00
web running os
This commit is contained in:
parent
9e25c4ca0c
commit
00c96a096b
@ -137,7 +137,7 @@ end
|
|||||||
|
|
||||||
-- every 10 seconds, send out this computer's info
|
-- every 10 seconds, send out this computer's info
|
||||||
process:newThread('discovery_heartbeat', function()
|
process:newThread('discovery_heartbeat', function()
|
||||||
os.sleep(1)
|
--os.sleep(1)
|
||||||
|
|
||||||
while true do
|
while true do
|
||||||
sendInfo()
|
sendInfo()
|
||||||
@ -157,7 +157,6 @@ end)
|
|||||||
if os.isTurtle() then
|
if os.isTurtle() then
|
||||||
process:newThread('turtle_heartbeat', function()
|
process:newThread('turtle_heartbeat', function()
|
||||||
|
|
||||||
os.sleep(1)
|
|
||||||
while true do
|
while true do
|
||||||
os.pullEvent('turtle_response')
|
os.pullEvent('turtle_response')
|
||||||
if turtle.status ~= info.status or
|
if turtle.status ~= info.status or
|
||||||
|
Loading…
Reference in New Issue
Block a user