Posted 22 February 2012 - 03:13 PM
I need some help with my program. What it should do is,output redstone to the left, if redstone comes from the front, stop outputting redstone to the right wait and reboot. this is my code:
startup:
startup:
while true do
shell.run"redside"
endredside:redstone.setOutput("right", true)
if redstone.getInput("front", true)
then redstone.setOutput("right", false)
sleep(10)
os.restart()
endbut if I reboot now, it works for only a couple of seconds and a error pops up which says 'Too long without yielding'. What did I do wrong?