]> sigrok.org Git - libsigrokdecode.git/commitdiff
usb_packet: Fix incorrect DATA*/MDATA handling.
authorUwe Hermann <redacted>
Fri, 14 Aug 2015 11:48:08 +0000 (13:48 +0200)
committerUwe Hermann <redacted>
Fri, 14 Aug 2015 12:58:20 +0000 (14:58 +0200)
Thanks to Pavel Sukortsev for the bug report and fix.

This fixes bug #623.

decoders/usb_packet/pd.py

index a9c8b252eb27f01e9b1967530c9ef7baaa9fd640..6f5e66eba2c4dba8c24a7b1b78efacb3214e3da8 100644 (file)
@@ -289,7 +289,6 @@ class Decoder(srd.Decoder):
                                'DB: %02X' % db, '%02X' % db]])
                 databytes.append(db)
                 self.packet_summary += ' %02X' % db
-                data = data[8:]
             self.packet_summary += ' ]'
 
             # Convenience Python output (no annotation) for all bytes together.