From fa8ad9eb7d800a8fa737791b71722a5b870607b5 Mon Sep 17 00:00:00 2001 From: "navid.sassan" Date: Fri, 2 Apr 2021 16:45:43 +0200 Subject: [PATCH] testing --- energy_control | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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