testing
This commit is contained in:
parent
0e55421e6f
commit
fa8ad9eb7d
@ -35,8 +35,10 @@ function recv()
|
||||
local updated = false
|
||||
while true do
|
||||
local id, data = rednet.receive()
|
||||
print("Message from " .. id .. ": " .. dump(data))
|
||||
if id == redstone_toggle_id then
|
||||
if type(data) == 'table' then
|
||||
print('table')
|
||||
if data[1] == 'output_state' then
|
||||
redstone_toggle_state = data[2]
|
||||
updated = true
|
||||
@ -67,7 +69,6 @@ function recv()
|
||||
-- end
|
||||
-- print()
|
||||
-- term.setBackgroundColor(colors.black)
|
||||
sleep(1)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user