changed event gate requirements note
This commit is contained in:
		| @@ -1,8 +1,6 @@ | |||||||
| --[[ |  | ||||||
| 2019-04-17 | -- 2020-03-30 | ||||||
| 	Ideally the gate should ignore event set power if its input is connected to a wiregroup. | -- Requirement change: The gate's output will now depend only on the event, and not carry the input at all | ||||||
| 	However I don't know how to do that right now so I'm going to leave it for later |  | ||||||
| ]] |  | ||||||
|  |  | ||||||
| return function(gate, argv) | return function(gate, argv) | ||||||
| 	gate.ports[2]:setstate(toboolean(argv[1])) | 	gate.ports[2]:setstate(toboolean(argv[1])) | ||||||
|   | |||||||
| @@ -1,5 +1,4 @@ | |||||||
|  |  | ||||||
| return function(gate) | return function(gate) | ||||||
| 	--gate.ports[2]:setstate(gate.ports[1].state) |  | ||||||
| 	gate:cb(bool_to_int[gate.ports[1].state]) | 	gate:cb(bool_to_int[gate.ports[1].state]) | ||||||
| end | end | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Redo
					Redo