summaryrefslogtreecommitdiff
path: root/decoders/ieee488
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2019-12-07 08:58:34 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2019-12-07 15:45:06 +0100
commit8e796681f2e53c819a0257ab6f4db810aba77334 (patch)
tree2df2c79d478c4bf94c04f556a98a46f32e7f2fdb /decoders/ieee488
parent962983f35ea4c1cdcef12e02971791cc80653dcb (diff)
downloadlibsigrokdecode-8e796681f2e53c819a0257ab6f4db810aba77334.tar.gz
libsigrokdecode-8e796681f2e53c819a0257ab6f4db810aba77334.zip
ieee488: flush upper layer payload data when IFC asserts
Also flush previously accumulated payload data when the IFC signal asserts (interface clear, a controller requests ownership of the bus). This is in line with EOI (end of message) and ATN (start of a command, including change of "connected" peers or direction of communication).
Diffstat (limited to 'decoders/ieee488')
-rw-r--r--decoders/ieee488/pd.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/decoders/ieee488/pd.py b/decoders/ieee488/pd.py
index e0c2ef6..e39ecc5 100644
--- a/decoders/ieee488/pd.py
+++ b/decoders/ieee488/pd.py
@@ -407,6 +407,7 @@ class Decoder(srd.Decoder):
if ifc:
self.last_talker = None
self.last_listener = []
+ self.flush_bytes_text_accu()
def handle_eoi_change(self, eoi):
# Track EOI line for parallel and serial input.