mirror of
https://github.com/Kiritow/OpenComputerScripts.git
synced 2024-03-22 13:10:46 +08:00
update 2/4 program
This commit is contained in:
parent
176e9e295d
commit
b9ed20f109
|
@ -205,6 +205,8 @@ local function TCSMain()
|
||||||
-- Main Processing Loop
|
-- Main Processing Loop
|
||||||
local running=true
|
local running=true
|
||||||
while(running) do
|
while(running) do
|
||||||
|
os.sleep(0.5)
|
||||||
|
|
||||||
local ev="no_event"
|
local ev="no_event"
|
||||||
if(ebus:top()~=nil) then
|
if(ebus:top()~=nil) then
|
||||||
ev=ebus:pop() -- Notice: Event is already poped.
|
ev=ebus:pop() -- Notice: Event is already poped.
|
||||||
|
@ -216,7 +218,7 @@ local function TCSMain()
|
||||||
end
|
end
|
||||||
|
|
||||||
if(ev=="no_event") then
|
if(ev=="no_event") then
|
||||||
os.sleep(0.5) -- No event, delay for more info
|
-- No event, no action.
|
||||||
elseif(ev=="stop") then
|
elseif(ev=="stop") then
|
||||||
running=false
|
running=false
|
||||||
--- AB
|
--- AB
|
||||||
|
|
Loading…
Reference in New Issue
Block a user