Skip to content

Commit

Permalink
Merge pull request #46 from mossmann/vidpid
Browse files Browse the repository at this point in the history
Use pid.codes VID/PID in unit tests
  • Loading branch information
mossmann authored Jul 4, 2024
2 parents 168a388 + de53bd2 commit 7374513
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2020, Great Scott Gadgets <[email protected]>
Copyright (c) 2020-2024, Great Scott Gadgets <[email protected]>
Copyright (c) 2020, Katherine J. Temkin <[email protected]>

Redistribution and use in source and binary forms, with or without
Expand Down
8 changes: 4 additions & 4 deletions usb_protocol/types/descriptors/standard.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ def test_device_descriptor(self):
0xFF, # subclass
0xFF, # protocol
64, # ep0 max packet size
0xd0, 0x16, # VID
0x3b, 0x0f, # PID
0x09, 0x12, # VID
0x01, 0x00, # PID
0x00, 0x00, # device rev
0x01, # manufacturer string
0x02, # product string
Expand All @@ -297,8 +297,8 @@ def test_device_descriptor(self):
self.assertEqual(parsed.bDeviceSubclass, 0xFF)
self.assertEqual(parsed.bDeviceProtocol, 0xFF)
self.assertEqual(parsed.bMaxPacketSize0, 64)
self.assertEqual(parsed.idVendor, 0x16d0)
self.assertEqual(parsed.idProduct, 0x0f3b)
self.assertEqual(parsed.idVendor, 0x1209)
self.assertEqual(parsed.idProduct, 0x0001)
self.assertEqual(parsed.bcdDevice, 0)
self.assertEqual(parsed.iManufacturer, 1)
self.assertEqual(parsed.iProduct, 2)
Expand Down

0 comments on commit 7374513

Please sign in to comment.