summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mathieu <michael@michael-laptop.(none)>2009-01-10 02:01:27 +0100
committerMichael Mathieu <michael@michael-laptop.(none)>2009-01-10 02:01:27 +0100
commitb452426ed9f14c244c88ebcbd86e3fb4d7d16ef4 (patch)
tree7906e7121084a66d6f6a253d5668c5f45c67d2e0
parentddc158e97a95ce9674b3598c0a5153cf4abce7f6 (diff)
parent5f0bf9e6e61e008182eae786578f8d751f125cad (diff)
downloadsysdigit-b452426ed9f14c244c88ebcbd86e3fb4d7d16ef4.tar.gz
sysdigit-b452426ed9f14c244c88ebcbd86e3fb4d7d16ef4.tar.bz2
Merge branch 'allinmain' of git+ssh://mmathieu@ulminfo.aulo.in/home/ixce/sysdigit into allinmain
-rw-r--r--logiccircuitframework/components.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/logiccircuitframework/components.py b/logiccircuitframework/components.py
index 9f6cbcd..e80b454 100644
--- a/logiccircuitframework/components.py
+++ b/logiccircuitframework/components.py
@@ -101,7 +101,7 @@ class Component(object):
def _get_first_available_output(self):
used_outputs = [link.output_id for link in self.child_links]
r = range(1, self.outputs + 1)
- free_inputs = [i for i in r if i not in used_outputs]
+ free_outputs = [i for i in r if i not in used_outputs]
if not free_outputs:
return 1
return free_outputs[0]