forked from M-Labs/artiq
1
0
Fork 0

comm_analyzer: don't assume every message has data

close #1377
This commit is contained in:
Robert Jördens 2019-10-28 15:35:44 +01:00
parent c60ea58e8d
commit b0661ec055
1 changed files with 1 additions and 1 deletions

View File

@ -360,8 +360,8 @@ class SPIMaster2Handler(WishboneHandler):
def process_message(self, message):
self.stb.set_value("1")
self.stb.set_value("0")
data = message.data
if isinstance(message, OutputMessage):
data = message.data
address = message.address
if address == 1:
logger.debug("SPI config @%d data=0x%08x",