diff --git a/energy_control b/energy_control index 4e81395..703a5d7 100644 --- a/energy_control +++ b/energy_control @@ -21,7 +21,7 @@ end function poll() if redstone_toggle_id ~= nil then - rednet.send(redstone_toggle_id, "set_state") + rednet.send(redstone_toggle_id, "get_state") end if de_store_mon_id ~= nil then -- todo @@ -45,8 +45,8 @@ end function draw_screen() while true do - -- term.clear() - -- term.setCursorPos(0, 0) + term.clear() + term.setCursorPos(0, 0) term.setTextColor(colors.white) term.setBackgroundColor(colors.black) term.write('Press "R" to toggle the rainbows\n') @@ -63,9 +63,9 @@ function draw_screen() end end -local sides = peripheral.setNames() +local sides = peripheral.getNames() for i = 1, #sides do - if peripheral.setType(sides[i]) == "modem" then + if peripheral.getType(sides[i]) == "modem" then modemSide = sides[i] break end