changed event gate requirements note
This commit is contained in:
		| @@ -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])) | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user