X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fusb_request%2Fpd.py;h=bb7aedc5dd8e483f4bbad36d53cca989fd572a83;hb=8657abb6e0aecf0e7e76f6f757292ec5bd6e8205;hp=39a9df6af60fe822b77424593c7c4e1d1d313eef;hpb=6aa03e3aeb9054122e52016c3344927d5c0f02de;p=libsigrokdecode.git diff --git a/decoders/usb_request/pd.py b/decoders/usb_request/pd.py index 39a9df6..bb7aedc 100644 --- a/decoders/usb_request/pd.py +++ b/decoders/usb_request/pd.py @@ -201,7 +201,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('