Skip to content

Commit

Permalink
[#37] __get_node_group() to take node instead of index.
Browse files Browse the repository at this point in the history
  • Loading branch information
kosarev committed Sep 29, 2021
1 parent 9bafc40 commit a46f67c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/z80sim/z80sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ def __add_node_to_group(self, n):
other = t.c1
self.__add_node_to_group(other)

def __get_node_group(self, i):
def __get_node_group(self, n):
self.__group = []
self.__add_node_to_group(self.__nodes[i])
self.__add_node_to_group(n)

def __get_node_value(self):
# 1. deal with power connections first
Expand Down Expand Up @@ -228,7 +228,7 @@ def __recalc_node(self, node):
if self.__nodes[node] in (self.__gnd, self.__pwr):
return

self.__get_node_group(node)
self.__get_node_group(self.__nodes[node])

new_state = self.__get_node_value()

Expand Down

0 comments on commit a46f67c

Please sign in to comment.