From 38971d130a18892d5e1d5160068a6b92d4743730 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Wed, 6 Jun 2018 12:21:42 +0200 Subject: [PATCH] comm_analyzer: fix data without any spi reads closes #1050 --- artiq/coredevice/comm_analyzer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/coredevice/comm_analyzer.py b/artiq/coredevice/comm_analyzer.py index 6f432ea77..c6a2a3da4 100644 --- a/artiq/coredevice/comm_analyzer.py +++ b/artiq/coredevice/comm_analyzer.py @@ -381,7 +381,8 @@ class SPIMaster2Handler(WishboneHandler): else: raise ValueError("bad address", address) # process untimed reads and insert them here - while self._reads[0].rtio_counter < message.timestamp: + while (self._reads and + self._reads[0].rtio_counter < message.timestamp): read = self._reads.pop(0) logger.debug("SPI read @%d data=0x%08x", read.rtio_counter, read.data)