From 665b989217fe7f97d2db71edbda5015cfbfcb944 Mon Sep 17 00:00:00 2001 From: Nicolai Buchwitz Date: Thu, 14 Oct 2021 18:15:10 +0200 Subject: [PATCH] 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) --- revpimodio2/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/revpimodio2/io.py b/revpimodio2/io.py index c0fb554..59447d7 100644 --- a/revpimodio2/io.py +++ b/revpimodio2/io.py @@ -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