X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fusb_request%2Fpd.py;h=c1f00cdb008568eca7c19102853d58bbbf453ca6;hb=d47dd3d900f96d831b5f9c9f87d9b9c941a1777e;hp=39a9df6af60fe822b77424593c7c4e1d1d313eef;hpb=5b0b88ced37e8fbe3031867255412f449245ca26;p=libsigrokdecode.git diff --git a/decoders/usb_request/pd.py b/decoders/usb_request/pd.py index 39a9df6..c1f00cd 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 @@ -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('