From 7cc28c5e973108f19655e167ce7a5a0a52f852dc Mon Sep 17 00:00:00 2001 From: Redo Date: Mon, 30 Mar 2020 22:42:36 -0500 Subject: [PATCH] changed event gate requirements note --- bricks/special/EventGate-input.lua | 8 +++----- bricks/special/EventGate-update.lua | 1 - 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/bricks/special/EventGate-input.lua b/bricks/special/EventGate-input.lua index c9336b1..61aec41 100644 --- a/bricks/special/EventGate-input.lua +++ b/bricks/special/EventGate-input.lua @@ -1,8 +1,6 @@ ---[[ -2019-04-17 - Ideally the gate should ignore event set power if its input is connected to a wiregroup. - However I don't know how to do that right now so I'm going to leave it for later -]] + +-- 2020-03-30 +-- Requirement change: The gate's output will now depend only on the event, and not carry the input at all return function(gate, argv) gate.ports[2]:setstate(toboolean(argv[1])) diff --git a/bricks/special/EventGate-update.lua b/bricks/special/EventGate-update.lua index a2a68a6..e7d8c89 100644 --- a/bricks/special/EventGate-update.lua +++ b/bricks/special/EventGate-update.lua @@ -1,5 +1,4 @@ return function(gate) - --gate.ports[2]:setstate(gate.ports[1].state) gate:cb(bool_to_int[gate.ports[1].state]) end