Posted 16 April 2013 - 12:55 AM
I'm not sure if there's a bug or I'm doing something wrong?
I was trying to make a simple toggle, but my code always turns it on because get() is always false:
m = peripheral.wrap("right") -- REther peripheral
m.setFreq(1)
m.get() -- returns false
m.set(true)
m.get() -- still returns false
I was trying to make a simple toggle, but my code always turns it on because get() is always false:
local m = peripheral.wrap("right")
m.setFreq(1)
if m.get() == true then
m.set(false)
print "false'd"
else m.set(true)
print "true'd"
end