X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fusb_request%2Fpd.py;h=5d2d47d3e6f239603ada770674f80b023b031fba;hb=b197383cfb39b39ff04644855eef57f5d3c18bc1;hp=39a9df6af60fe822b77424593c7c4e1d1d313eef;hpb=5b0b88ced37e8fbe3031867255412f449245ca26;p=libsigrokdecode.git
diff --git a/decoders/usb_request/pd.py b/decoders/usb_request/pd.py
index 39a9df6..5d2d47d 100644
--- a/decoders/usb_request/pd.py
+++ b/decoders/usb_request/pd.py
@@ -14,8 +14,7 @@
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+## along with this program; if not, see .
##
import sigrokdecode as srd
@@ -113,7 +112,7 @@ class pcap_usb_pkt():
return 64 + len(self.data)
class Decoder(srd.Decoder):
- api_version = 2
+ api_version = 3
id = 'usb_request'
name = 'USB request'
longname = 'Universal Serial Bus (LS/FS) transaction/request'
@@ -201,7 +200,7 @@ class Decoder(srd.Decoder):
self.handle_request(request_started, request_end)
# CONTROL, SETUP stage
- elif request['type'] == None and self.transaction_type == 'SETUP':
+ elif request['type'] is None and self.transaction_type == 'SETUP':
request['setup_data'] = self.transaction_data
request['wLength'] = struct.unpack('