diff --git a/energy_control b/energy_control index c2d6cb0..c525691 100644 --- a/energy_control +++ b/energy_control @@ -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