From: Uwe Hermann Date: Fri, 14 Aug 2015 11:48:08 +0000 (+0200) Subject: usb_packet: Fix incorrect DATA*/MDATA handling. X-Git-Tag: libsigrokdecode-0.4.0~100 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=42227c2d29c8330c955cf64cf92be0bf1bf4aeeb;p=libsigrokdecode.git usb_packet: Fix incorrect DATA*/MDATA handling. Thanks to Pavel Sukortsev for the bug report and fix. This fixes bug #623. --- diff --git a/decoders/usb_packet/pd.py b/decoders/usb_packet/pd.py index a9c8b25..6f5e66e 100644 --- a/decoders/usb_packet/pd.py +++ b/decoders/usb_packet/pd.py @@ -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.