From: Gerhard Sittig Date: Sat, 7 Dec 2019 07:58:34 +0000 (+0100) Subject: ieee488: flush upper layer payload data when IFC asserts X-Git-Url: http://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=8e796681f2e53c819a0257ab6f4db810aba77334 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). --- 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.