Fix find_unconnected_ports
This commit is contained in:
parent
7bcca553fc
commit
a336ae9420
1 changed files with 4 additions and 2 deletions
|
@ -401,10 +401,12 @@ impl Cell {
|
||||||
};
|
};
|
||||||
|
|
||||||
for dir in options {
|
for dir in options {
|
||||||
if let Some(pos) = self.is_port_dir_connected(m, *dir) {
|
if self.is_port_dir_connected(m, *dir).is_none() {
|
||||||
|
if let Some(pos) = dir.offs_pos((self.x as usize, self.y as usize)) {
|
||||||
unused_ports.push((*dir, pos));
|
unused_ports.push((*dir, pos));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
unused_ports
|
unused_ports
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue