Skip to content

Commit 7374513

Browse files
authored
Merge pull request greatscottgadgets#46 from mossmann/vidpid
Use pid.codes VID/PID in unit tests
2 parents 168a388 + de53bd2 commit 7374513

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

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

66
Redistribution and use in source and binary forms, with or without

usb_protocol/types/descriptors/standard.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ def test_device_descriptor(self):
277277
0xFF, # subclass
278278
0xFF, # protocol
279279
64, # ep0 max packet size
280-
0xd0, 0x16, # VID
281-
0x3b, 0x0f, # PID
280+
0x09, 0x12, # VID
281+
0x01, 0x00, # PID
282282
0x00, 0x00, # device rev
283283
0x01, # manufacturer string
284284
0x02, # product string
@@ -297,8 +297,8 @@ def test_device_descriptor(self):
297297
self.assertEqual(parsed.bDeviceSubclass, 0xFF)
298298
self.assertEqual(parsed.bDeviceProtocol, 0xFF)
299299
self.assertEqual(parsed.bMaxPacketSize0, 64)
300-
self.assertEqual(parsed.idVendor, 0x16d0)
301-
self.assertEqual(parsed.idProduct, 0x0f3b)
300+
self.assertEqual(parsed.idVendor, 0x1209)
301+
self.assertEqual(parsed.idProduct, 0x0001)
302302
self.assertEqual(parsed.bcdDevice, 0)
303303
self.assertEqual(parsed.iManufacturer, 1)
304304
self.assertEqual(parsed.iProduct, 2)

0 commit comments

Comments
 (0)