Posted 01 January 2013 - 01:09 AM
Hi there,
i wanted to write program, but got problem.
I have two functions:
This actually doesn't work. Seems that function doorControl isn't called even once.
Thanks.
i wanted to write program, but got problem.
I have two functions:
function startRednet()
-- just receive data from rednet in while loop and set variable
open="open"
end
function doorControl()
while true do
if open=="open" then
-- doing something
end
end
parallel.waitForAny(startRednet(),doorControl())
This actually doesn't work. Seems that function doorControl isn't called even once.
Thanks.