]> sigrok.org Git - libsigrokdecode.git/commitdiff
ieee488: flush upper layer payload data when IFC asserts
authorGerhard Sittig <redacted>
Sat, 7 Dec 2019 07:58:34 +0000 (08:58 +0100)
committerUwe Hermann <redacted>
Sat, 7 Dec 2019 14:45:06 +0000 (15:45 +0100)
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).

decoders/ieee488/pd.py

index e0c2ef69f24adb277e680d69f8fde4af40877452..e39ecc549b207fcd4a390f7c3abbdb7d4d6a8444 100644 (file)
@@ -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.