fix: scope bit address with slc_address

Scope bit address with byte address in order to allow replace_io on
datatypes bigger than 8 bit (like WORD)
This commit is contained in:
Nicolai Buchwitz
2021-10-14 18:15:10 +02:00
parent 577e764741
commit 665b989217

View File

@@ -176,7 +176,7 @@ class IOList(object):
if type(oldio) == StructIO:
# Hier gibt es schon einen neuen IO
if oldio._bitshift:
if io._bitshift == oldio._bitshift:
if io._bitshift == oldio._bitshift and io._slc_address == oldio._slc_address:
raise MemoryError(
"bit {0} already assigned to '{1}'".format(
io._bitaddress, oldio._name