Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pid.codes VID/PID in unit tests #46

Merged
merged 1 commit into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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